mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Using jk to escape insert mode without lagging.
See https://jdhao.github.io/2020/11/23/neovim_better_mapping_for_leaving_insert_mode/.
This commit is contained in:
@@ -9,7 +9,7 @@ xnoremap ; :
|
||||
nnoremap q; q:
|
||||
|
||||
" Quicker <Esc> in insert mode
|
||||
inoremap jk <Esc>
|
||||
inoremap <expr> k utils#EscapeInsertOrNot()
|
||||
|
||||
" Turn the word under cursor to upper case
|
||||
inoremap <c-u> <Esc>viwUea
|
||||
|
||||
Reference in New Issue
Block a user