summaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
authorAmin Bandali <me@aminb.org>2015-05-27 22:36:37 -0400
committerAmin Bandali <me@aminb.org>2015-05-27 22:36:37 -0400
commit2c667b7e7c82481b11b03d111ce0a81f9b4ca701 (patch)
treefd9a3345c5c7727304670ff6022b233593aa712e /vim
parent58b04a471e1a534709b43e60fe3c3519290218e2 (diff)
downloadconfigs-2c667b7e7c82481b11b03d111ce0a81f9b4ca701.tar.gz
configs-2c667b7e7c82481b11b03d111ce0a81f9b4ca701.tar.xz
configs-2c667b7e7c82481b11b03d111ce0a81f9b4ca701.zip
[vim] save file as root with <leader>w
Diffstat (limited to '')
-rw-r--r--vim/.vimrc4
1 files changed, 2 insertions, 2 deletions
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 <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")