Added command W for writing files with sudo

This commit is contained in:
gryf committed 2018-10-09 11:29:18 +02:00
1 parent 898093b389
commit f9f831365e
1 file changed
+3
+3
View File
@@ -692,6 +692,9 @@ function <SID>CreateScratch()
new|setl bt=nofile bh=wipe nobl new|setl bt=nofile bh=wipe nobl
return "" return ""
endfunction endfunction
"write files as a root using sudo
command W w !sudo tee "%" > /dev/null
"}}} "}}}
" GUI: detect graphics mode, set colorscheme {{{ " GUI: detect graphics mode, set colorscheme {{{
if has('gui_running') if has('gui_running')