diff --git a/vim/vimrc b/vim/vimrc index 70c2808..105d814 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -55,3 +55,5 @@ nmap :wincmd k nmap :wincmd j nmap :wincmd h nmap :wincmd l +" Allow saving of files as sudo when I forgot to start vim using sudo. +cmap w!! w !sudo tee > /dev/null %