mirror of
https://github.com/pgrondek/config.git
synced 2024-11-22 20:13:43 +00:00
[vim] Added configuration for saving file as root
This commit is contained in:
parent
20b5be4f66
commit
afc2913270
@ -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 New Issue
Block a user