[vim] Added configuration for saving file as root
This commit is contained in:
parent
20b5be4f66
commit
afc2913270
1 changed files with 8 additions and 0 deletions
|
@ -21,3 +21,11 @@ set showcmd " show command in bar
|
||||||
set number " show line numbers
|
set number " show line numbers
|
||||||
set wildmenu " visual autocomplete for command menu
|
set wildmenu " visual autocomplete for command menu
|
||||||
set tabpagemax=10
|
set tabpagemax=10
|
||||||
|
|
||||||
|
function Xsudo()
|
||||||
|
:w !sudo tee %
|
||||||
|
:q!
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
command Wsudo :w !sudo tee %
|
||||||
|
command Xsudo exec Xsudo()
|
||||||
|
|
Loading…
Reference in a new issue