Added easyescape for faster jk/kj escaping
This commit is contained in:
11
vim/.vimrc
11
vim/.vimrc
@@ -51,10 +51,12 @@ nnoremap <C-j> <C-W><C-J>
|
||||
nnoremap <C-k> <C-W><C-K>
|
||||
nnoremap <C-l> <C-W><C-L>
|
||||
nnoremap <C-h> <C-W><C-H>
|
||||
" use jj to escape insert mode
|
||||
inoremap jj <Esc>
|
||||
inoremap jk <Esc>
|
||||
inoremap kj <Esc>
|
||||
" use jk to escape insert mode - using easyescape plugin
|
||||
let g:easyescape_chars = { "j": 1, "k": 1 }
|
||||
let g:easyescape_timeout = 100
|
||||
cnoremap jk <ESC>
|
||||
cnoremap kj <ESC>
|
||||
|
||||
" blank lines
|
||||
nnoremap <Enter> o<ESC>
|
||||
nnoremap <S-Enter> O<ESC>
|
||||
@@ -93,6 +95,7 @@ Plugin 'itchyny/calendar.vim'
|
||||
Plugin 'davidhalter/jedi-vim'
|
||||
Plugin 'tpope/vim-surround'
|
||||
Plugin 'junegunn/goyo.vim'
|
||||
Plugin 'zhou13/vim-easyescape'
|
||||
|
||||
call vundle#end() " required
|
||||
filetype plugin indent on " required
|
||||
|
||||
Reference in New Issue
Block a user