Added command W for writing files with sudo
This commit is contained in:
1 parent
898093b389
commit
f9f831365e
1 file changed
+3
@@ -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')
|
||||||
|
|||||||
Reference in new issue
Block a user