1
0
mirror of https://github.com/gryf/.vim.git synced 2025-12-17 11:30:29 +01:00

Added command W for writing files with sudo

This commit is contained in:
2018-10-09 11:29:18 +02:00
parent 898093b389
commit f9f831365e

3
vimrc
View File

@@ -692,6 +692,9 @@ function <SID>CreateScratch()
new|setl bt=nofile bh=wipe nobl
return ""
endfunction
"write files as a root using sudo
command W w !sudo tee "%" > /dev/null
"}}}
" GUI: detect graphics mode, set colorscheme {{{
if has('gui_running')