about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--vim/.vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index db507de..02b2c40 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -29,6 +29,8 @@ set tabpagemax=50
 
 inoremap <C-U> <C-G>u<C-U>
 
+cmap w!! w !sudo tee % >/dev/null
+
 set rtp+=~/.fzf
 
 " vim:set ft=vim et sw=2: