aboutsummaryrefslogtreecommitdiff
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
parent6210aad0e7fbb05115492394e3335e752f310fb7 (diff)
parentb1f0479e93b1034c33564408e210fcaadf07d8c0 (diff)
downloaddotfiles-d94db1162c2252590d4baa38c4b29a2d8709a747.tar.gz
dotfiles-d94db1162c2252590d4baa38c4b29a2d8709a747.tar.bz2
dotfiles-d94db1162c2252590d4baa38c4b29a2d8709a747.zip
vimrc better sudo save
-rw-r--r--README.md1
-rw-r--r--vimrc3
2 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index fcb6a72..d802d42 100644
--- a/README.md
+++ b/README.md
@@ -11,3 +11,4 @@ GNU screen
X11
And other useful scripts utilising them.
+
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!
+