Added easyescape for faster jk/kj escaping

This commit is contained in:
jond
2018-05-05 08:02:30 -05:00
parent f8110f9e99
commit bd4ca982b1
2 changed files with 8 additions and 4 deletions

Submodule vim/.vim/bundle/vim-easyescape added at 710f59bc13

View File

@@ -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