aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
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!
+