From: Samir Benmendil Date: Mon, 13 Jan 2014 18:57:03 +0000 (+0100) Subject: vim: add map to save with sudo X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/fe438df5306bd28558fd39eb9aec73b13f47a96f?ds=inline vim: add map to save with sudo --- diff --git a/vimrc b/vimrc index 535a111..db95efe 100644 --- a/vimrc +++ b/vimrc @@ -202,6 +202,9 @@ set undodir=$HOME/.vim/backupdir set autowrite " automatically write a file when leaving a modified buffer +" save with sudo +cmap w!! w !sudo tee % > /dev/null + " command line editing {{{1 set history=500 " how many command lines are remembered set wildmode=longest:full " specifies how command line completion works