sudo-gui.vim
is a GUI for a GUI vim
.
The original idea isn't mine, but I just couldn't get MacVim
working with sudo
.
sudo-gui.vim
plugin provides SudoWrite!
command (and a W!
shortcut) allowing to write a file with administrative priviliges.
Depending on whether vim
is run as a terminal app or as a GUI one a password will be requested either as a console input or as a GUI dialog box.
Currently console, and OSX GUI dialogs are provided. GTK and other - to come...
If you're Vundle
user add to your .vimrc
Bundle 'gmarik/sudo-gui.vim'
and run :BundleInstall
( Vim
restart required for Vundle prior to v0.5)
I know ther's sudo.vim
but I rather build prototype before contributing...
- GTK dialog
- docs
- SudoRead?
- Screencast?