summaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
authoryushyin <yushyin@saga>2016-02-13 16:25:44 +0100
committeryushyin <yushyin@saga>2016-02-13 16:25:44 +0100
commitacaff9e10aa5fb2f329d57d589503f30398cfc3e (patch)
tree6de0bec75bfdeb74f195c8e065bcdd90613deb6a /vim
parente661908653bb9d5a21017aa1253bccaf3c20629c (diff)
downloaddotfiles-acaff9e10aa5fb2f329d57d589503f30398cfc3e.tar.gz
dotfiles-acaff9e10aa5fb2f329d57d589503f30398cfc3e.tar.xz
Vim: Add write with sudo command
Diffstat (limited to 'vim')
-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