pkg is built on top of libpkg, a new library to interface with the package registration backends. It abstracts package management details such as registration, remote repositories, package creation, ...
If you do not like working with vi, there are alternatives. If you access your system from a laptop, and have networking set up on 2.11 BSD, you can use FileZilla on your laptop (Windows, OSX, Linux ...