Skip to content

Commit

Permalink
Checkin of official Version 0.6 from http://www.vim.org
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbra committed Apr 19, 2010
1 parent 4f79775 commit 995a5b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion doc/SudoEdit.txt
@@ -1,4 +1,4 @@
*SudoEdit.txt* Edit Files using Sudo/su - Vers 0.5 Jul 08, 2009
*SudoEdit.txt* Edit Files using Sudo/su - Vers 0.6 Jul 14, 2009

Author: Christian Brabandt <cb@256bit.org>
Copyright: (c) 2009 by Christian Brabandt *SudoEdit-copyright*
Expand Down Expand Up @@ -106,6 +106,8 @@ For su, you would use g:sudoAuthArg="-c", but you do not have to set it, the
plugin will automatically use -c if it detects, that su is used.
==============================================================================
4. SudoEdit History *SudoEdit-history*
0.6: July 14, 2009 : Fix minor bug, that prevents setting the
filename correctly when writing.
0.5: July 08, 2009 : Enables the plugin for |GetLatestVimScripts|
0.4: July 08, 2009 : First release
Added Documentation
Expand Down
7 changes: 4 additions & 3 deletions plugin/SudoEdit.vim
@@ -1,11 +1,11 @@
" SudoEdit.vim - Use sudo/su for writing/reading files with Vim
" ---------------------------------------------------------------
" Version: 0.5
" Version: 0.6
" Authors: Christian Brabandt <cb@256bit.org>
" Last Change: 2009/07/08
" Script: http://www.vim.org/scripts/script.php?script_id=2709
" License: VIM License
" GetLatestVimScripts: 2709 3 :AutoInstall: SudoEdit.vim
" GetLatestVimScripts: 2709 4 :AutoInstall: SudoEdit.vim

" Configuration:"{{{
" Exit quickly when:
Expand All @@ -20,7 +20,7 @@ if v:version < 700 || ( v:version == 700 && !has("patch111"))
finish
endif

let loaded_sudowrite=0.4
let loaded_sudowrite=0.6

" Which Tool for super-user access to use"{{{
" Will be tried in order, first tool that is found will be used
Expand Down Expand Up @@ -117,6 +117,7 @@ fu! <SID>SudoWrite(file) range
if v:shell_error
throw "writeError"
endif
exe ":f " . a:file
set nomod
endfu

Expand Down

0 comments on commit 995a5b9

Please sign in to comment.