diff options
author | Amin Bandali <me@aminb.org> | 2015-05-27 22:36:37 -0400 |
---|---|---|
committer | Amin Bandali <me@aminb.org> | 2015-05-27 22:36:37 -0400 |
commit | 2c667b7e7c82481b11b03d111ce0a81f9b4ca701 (patch) | |
tree | fd9a3345c5c7727304670ff6022b233593aa712e /vim | |
parent | 58b04a471e1a534709b43e60fe3c3519290218e2 (diff) | |
download | configs-2c667b7e7c82481b11b03d111ce0a81f9b4ca701.tar.gz configs-2c667b7e7c82481b11b03d111ce0a81f9b4ca701.tar.xz configs-2c667b7e7c82481b11b03d111ce0a81f9b4ca701.zip |
[vim] save file as root with <leader>w
Diffstat (limited to 'vim')
-rw-r--r-- | vim/.vimrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -120,8 +120,8 @@ function! StripWhitespace() call setreg('/', old_query) endfunction noremap <leader>ss :call StripWhitespace()<CR> -" Save a file as root (,W) -noremap <leader>W :w !sudo tee % > /dev/null<CR> +" Save a file as root (,w) +noremap <leader>w :w !sudo tee % > /dev/null<CR> " Automatic commands if has("autocmd") |