Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Add command line mappings for saving and force saving
Browse files Browse the repository at this point in the history
  • Loading branch information
Jab2870 committed Jul 9, 2019
1 parent 450c635 commit b85b829
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vimrc
Expand Up @@ -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>
Expand Down

0 comments on commit b85b829

Please sign in to comment.