Based on sudo.vim.
This script eases use of vim with pfexec by adding the ability to edit one file with root privleges without running the whole session that way.
SunOS distributions (Solaris, OpenIndiana, ...)
Put it in the plugin directory, and
command line: $ vim pf:/etc/hosts
within vim: :e pf:/etc/hosts
or: :PfEdit /etc/hosts