Add command line mappings for saving and force saving

master
Jonathan Hodgson 6 years ago
parent 450c6351a1
commit b85b829af5
  1. 3
      .vimrc

@ -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>

Loading…
Cancel
Save