1
0
mirror of https://github.com/pgrondek/config.git synced 2024-11-25 21:25:39 +00:00

[vim] Added configuration for saving file as root

This commit is contained in:
Przemyslaw Grondek 2019-09-18 11:09:26 +02:00
parent 20b5be4f66
commit afc2913270

View File

@ -21,3 +21,11 @@ set showcmd " show command in bar
set number " show line numbers
set wildmenu " visual autocomplete for command menu
set tabpagemax=10
function Xsudo()
:w !sudo tee %
:q!
endfunction
command Wsudo :w !sudo tee %
command Xsudo exec Xsudo()