Add command line mappings for saving and force saving
This commit is contained in:
parent
450c6351a1
commit
b85b829af5
1 changed files with 3 additions and 0 deletions
3
.vimrc
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…
Add table
Add a link
Reference in a new issue