From: Amin Bandali Date: Thu, 28 May 2015 02:36:37 +0000 (-0400) Subject: [vim] save file as root with w X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/2c667b7e7c82481b11b03d111ce0a81f9b4ca701?ds=sidebyside;hp=58b04a471e1a534709b43e60fe3c3519290218e2 [vim] save file as root with w --- diff --git a/vim/.vimrc b/vim/.vimrc index 30a982c..7b64c49 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -120,8 +120,8 @@ function! StripWhitespace() call setreg('/', old_query) endfunction noremap ss :call StripWhitespace() -" Save a file as root (,W) -noremap W :w !sudo tee % > /dev/null +" Save a file as root (,w) +noremap w :w !sudo tee % > /dev/null " Automatic commands if has("autocmd")