summaryrefslogtreecommitdiffstats
path: root/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 0d0217d..4a41591 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -120,3 +120,6 @@ endif
" Filebin
com -range=% Fb :exec "<line1>,<line2>w !fb -e ".&filetype." -n ".expand("%:t")
+
+" Write with sudo
+com W w !sudo tee % > /dev/null