aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2014-07-03 12:15:28 +0300
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2014-07-03 12:15:28 +0300
commit5860b6cf98395ba7f008d1f048c734d748f68719 (patch)
treec9ac5b766ad2a8cb3682776fb1ba7d58795d630b
parentd94db1162c2252590d4baa38c4b29a2d8709a747 (diff)
downloaddotfiles-5860b6cf98395ba7f008d1f048c734d748f68719.tar.gz
dotfiles-5860b6cf98395ba7f008d1f048c734d748f68719.tar.bz2
dotfiles-5860b6cf98395ba7f008d1f048c734d748f68719.zip
fix sudo tee for vim
-rw-r--r--vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 01c3d93..2a28eb6 100644
--- a/vimrc
+++ b/vimrc
@@ -106,5 +106,5 @@ inoremap <Leader><Tab> <Tab>
set isfname+=32
"save as root
-nnoremap <leader>r :silent exe “write !sudo tee % >/dev/null” | silent edit!
+nnoremap <leader>r :w !sudo tee % >/dev/null <CR>