nvim: keymappings: Fix the sudo write command
We actually haven't tested this. https://dev.to/jovica/the-vim-trick-which-will-save-your-time-and-nerves-45pg Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
286558f5af
commit
7b35dd4e78
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
" Allow saving of files as sudo when I forgot to start vim using sudo
|
" Allow saving of files as sudo when I forgot to start vim using sudo
|
||||||
cmap w!! w !sudo tee > /dev/null %
|
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
||||||
" Remap escape keys to something usable on home row
|
" Remap escape keys to something usable on home row
|
||||||
inoremap jk <Esc>
|
inoremap jk <Esc>
|
||||||
cnoremap jk <C-C>
|
cnoremap jk <C-C>
|
||||||
|
|
Loading…
Reference in a new issue