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-k> <C-W><C-K>
nnoremap <C-l> <C-W><C-L> nnoremap <C-l> <C-W><C-L>
nnoremap <C-h> <C-W><C-H> nnoremap <C-h> <C-W><C-H>
" use jj to escape insert mode " use jk to escape insert mode - using easyescape plugin
inoremap jj <Esc> let g:easyescape_chars = { "j": 1, "k": 1 }
inoremap jk <Esc> let g:easyescape_timeout = 100
inoremap kj <Esc> cnoremap jk <ESC>
cnoremap kj <ESC>
" blank lines " blank lines
nnoremap <Enter> o<ESC> nnoremap <Enter> o<ESC>
nnoremap <S-Enter> O<ESC> nnoremap <S-Enter> O<ESC>
@@ -93,6 +95,7 @@ Plugin 'itchyny/calendar.vim'
Plugin 'davidhalter/jedi-vim' Plugin 'davidhalter/jedi-vim'
Plugin 'tpope/vim-surround' Plugin 'tpope/vim-surround'
Plugin 'junegunn/goyo.vim' Plugin 'junegunn/goyo.vim'
Plugin 'zhou13/vim-easyescape'
call vundle#end() " required call vundle#end() " required
filetype plugin indent on " required filetype plugin indent on " required