nvim: Add a key binding to save files with sudo
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
8af9c11813
commit
321213894b
1 changed files with 2 additions and 0 deletions
|
@ -186,6 +186,8 @@ set sessionoptions-=blank
|
|||
set grepprg=rg\ --vimgrep
|
||||
|
||||
" --------------------------- Key Bindings -----------------------------------
|
||||
" Allow saving of files as sudo when I forgot to start vim using sudo
|
||||
cmap w!! w !sudo tee > /dev/null %
|
||||
" Remap escape keys to something usable on home row
|
||||
inoremap jk <Esc>
|
||||
cnoremap jk <C-C>
|
||||
|
|
Loading…
Reference in a new issue