Skip to content

Commit

Permalink
Version 2.0
Browse files Browse the repository at this point in the history
removed "'echo hi'" from the script.
  • Loading branch information
rich paul authored and vim-scripts committed Oct 18, 2010
1 parent 0b01ec1 commit 060f025
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions plugin/sudo.vim
Expand Up @@ -6,20 +6,31 @@
" edit one file with root privleges without running the whole
" session that way.
"
" Usage: put it in the plugin directory, and
" (command line): vim sudo:/etc/passwd
" (within vim): :e sudo:/etc/passwd
"
" sudo will ask for your password if need be.
"
" Usage: put it in the plugin directory, and
" (command line): vim sudo:/etc/passwd
" (within vim): :e sudo:/etc/passwd
"
" sudo will ask for your password if need be.
" Requires:
" sudo package installed
" decent OS (sorry, no windows, unless cygwin has sudo now?)
" Provides:
" URL handler, sudo: scheme
" 2 autocommands
"
" Commands:
" SudoRead
" SudoWrite
" ToDo:
" Allow one to sudo to users other than root.
" Quote the file name better.
"


if exists("s:seen") && !exists("s:debug")
finish
endif
echo 'hi'
let s:seen=1
"let s:debug=1
function! SudoRead(url)
Expand Down

0 comments on commit 060f025

Please sign in to comment.