aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2014-07-03 12:13:11 +0300
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2014-07-03 12:13:11 +0300
commitd94db1162c2252590d4baa38c4b29a2d8709a747 (patch)
treee5761fb529aeb97c62e20b548e5efdccf4538050 /vimrc
parent6210aad0e7fbb05115492394e3335e752f310fb7 (diff)
parentb1f0479e93b1034c33564408e210fcaadf07d8c0 (diff)
downloaddotfiles-d94db1162c2252590d4baa38c4b29a2d8709a747.tar.gz
dotfiles-d94db1162c2252590d4baa38c4b29a2d8709a747.tar.bz2
dotfiles-d94db1162c2252590d4baa38c4b29a2d8709a747.zip
vimrc better sudo save
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index dcd8341..01c3d93 100644
--- a/vimrc
+++ b/vimrc
@@ -106,4 +106,5 @@ inoremap <Leader><Tab> <Tab>
set isfname+=32
"save as root
-nnoremap <leader>r :w !sudo tee %<cr>
+nnoremap <leader>r :silent exe “write !sudo tee % >/dev/null” | silent edit!
+