Added easyescape for faster jk/kj escaping
This commit is contained in:
1
vim/.vim/bundle/vim-easyescape
Submodule
1
vim/.vim/bundle/vim-easyescape
Submodule
Submodule vim/.vim/bundle/vim-easyescape added at 710f59bc13
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-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
|
||||||
|
|||||||
Reference in New Issue
Block a user