summaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-03-24 20:36:31 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-03-24 20:36:31 +0100
commita6c197569a35b023cb1d681deb3a22fbde82048e (patch)
treeefb1bd1503f6b09ebfde38926110d76db803cc37 /.vim
parent900060c6e9612b1cf13da67a4237c6157cea9823 (diff)
downloaddotfiles-a6c197569a35b023cb1d681deb3a22fbde82048e.tar.gz
smaller gaps, sudo write vim
Diffstat (limited to '.vim')
-rw-r--r--.vim/vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/.vim/vimrc b/.vim/vimrc
index 9d93917..0857bcf 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -85,6 +85,8 @@ function Fileheader()
cursor(1,1)
endfunction
+command -bar Suw :w !SUDO_ASKPASS="/usr/lib/ssh/ssh-askpass" sudo -A tee %
+
" Command HEXMODE
command -bar Hexmode call ToggleHex()