mirror of
https://github.com/gryf/.vim.git
synced 2025-12-17 19:40:29 +01:00
Added command W for writing files with sudo
This commit is contained in:
3
vimrc
3
vimrc
@@ -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