Add command line mappings for saving and force saving

This commit is contained in:
Jonathan Hodgson 2019-07-09 08:10:54 +01:00
parent 450c6351a1
commit b85b829af5

3
.vimrc
View file

@ -396,8 +396,11 @@ inoremap <C-v> <Esc>"+pa
" map gV to select previously pasted
nnoremap <expr> gV "`[".getregtype(v:register)[0]."`]"
"
cnoremap w1 w!
" Set :w!! to save with sudo
cnoremap w!! w !sudo tee %
cnoremap w11 w !sudo tee %
"Run current line as command
nnoremap <leader>q !!$SHELL <cr>