From bd4ca982b15b6a875136117cec04d9840dcfac0b Mon Sep 17 00:00:00 2001 From: jond Date: Sat, 5 May 2018 08:02:30 -0500 Subject: [PATCH] Added easyescape for faster jk/kj escaping --- vim/.vim/bundle/vim-easyescape | 1 + vim/.vimrc | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) create mode 160000 vim/.vim/bundle/vim-easyescape diff --git a/vim/.vim/bundle/vim-easyescape b/vim/.vim/bundle/vim-easyescape new file mode 160000 index 0000000..710f59b --- /dev/null +++ b/vim/.vim/bundle/vim-easyescape @@ -0,0 +1 @@ +Subproject commit 710f59bc13acd843aa80b2a2954fea6154f730c5 diff --git a/vim/.vimrc b/vim/.vimrc index 3b3bf55..4745d72 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -51,10 +51,12 @@ nnoremap nnoremap nnoremap nnoremap -" use jj to escape insert mode -inoremap jj -inoremap jk -inoremap kj +" use jk to escape insert mode - using easyescape plugin +let g:easyescape_chars = { "j": 1, "k": 1 } +let g:easyescape_timeout = 100 +cnoremap jk +cnoremap kj + " blank lines nnoremap o nnoremap O @@ -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