From 2c667b7e7c82481b11b03d111ce0a81f9b4ca701 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Wed, 27 May 2015 22:36:37 -0400 Subject: [PATCH] [vim] save file as root with w --- vim/.vimrc | 4 ++-- 1 file 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 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") -- 2.20.1