about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2018-09-25 16:09:27 -0400
committerBen Harris <ben@tilde.team>2018-09-25 16:09:47 -0400
commited6597381641c515b373860a8a4498241dac7002 (patch)
tree6c1fe9bbd5feeab650150c267003927c3ee1e2cd
parent9d044943b26913d9b4b53a93c8171463ca006aca (diff)
add w!! alias
-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: