diff options
| author | jdhao <jdhao@hotmail.com> | 2020-11-24 22:55:39 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-11-24 22:55:39 +0800 |
| commit | 9a7ac4c9d191117aa86808de8c056338bca1dc09 (patch) | |
| tree | 42efcb86b31953a037aa365ba9776f3adde7691b /core/mappings.vim | |
| parent | 3e25d9283e240c5ebfe195d6edd871b5279252eb (diff) | |
Using jk to escape insert mode without lagging.
See https://jdhao.github.io/2020/11/23/neovim_better_mapping_for_leaving_insert_mode/.
Diffstat (limited to 'core/mappings.vim')
| -rw-r--r-- | core/mappings.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mappings.vim b/core/mappings.vim index abcd18c..ee51d53 100644 --- a/core/mappings.vim +++ b/core/mappings.vim @@ -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 |
