nvim: init.vim: Remap escape keys

This commit is contained in:
Sanchayan Maity 2019-11-20 11:44:47 +05:30 committed by Sanchayan Maity
parent dfecf742a7
commit 5ab23c2bdd

View file

@ -148,6 +148,10 @@ if maparg('<C-L>', 'n') ==# ''
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
endif
" Remap escape keys to something usable on home row
inoremap jk <Esc>
cnoremap jk <C-C>
inoremap <Esc> <Nop>
" Use ; for commands.
nnoremap ; :
" Use Q to execute default register.