diff --git a/README.org b/README.org index 4cc43fb..190b12b 100644 --- a/README.org +++ b/README.org @@ -160,9 +160,9 @@ A repository of my personal configuration files. *** General - [[https://github.com/bling/vim-bufferline][bling/vim-bufferline]] - [[https://github.com/ctrlpvim/ctrlp.vim][ctrlp/ctrlp.vim]] +- [[https://github.com/easymotion/vim-easymotion][easymotion/vim-easymotion]] - [[https://github.com/farmergreg/vim-lastplace][farmergreg/vim-lastplace]] --[[https://github.com/junegunn/fzf][ junegunn/fzf]] -- [[https://github.com/justinmk/vim-sneak][justinmk/vim-sneak]] +- [[https://github.com/junegunn/fzf][ junegunn/fzf]] - [[https://github.com/mbbill/undotree][mbbill/undotree]] - [[https://github.com/mhinz/vim-signify][mhinz/vim-signify]] - [[https://github.com/myusuf3/numbers.vim][myusuf3/numbers.vim]] diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index 0c5930b..538ef7e 100644 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -17,9 +17,9 @@ Plug 'unblevable/quick-scope' " } Plug 'bling/vim-bufferline' + Plug 'easymotion/vim-easymotion' Plug 'farmergreg/vim-lastplace' Plug 'junegunn/fzf' - Plug 'justinmk/vim-sneak' Plug 'ctrlpvim/ctrlp.vim' Plug 'mbbill/undotree' Plug 'mhinz/vim-signify' @@ -195,4 +195,23 @@ " Fix files automatically on save let g:ale_fix_on_save = 1 " } + + " easymotion { + let g:EasyMotion_do_mapping = 0 " Disable default mappings + + " Jump to anywhere you want with minimal keystrokes, with just one key binding. + " `s{char}{label}` + nmap s (easymotion-overwin-f) + " or + " `s{char}{char}{label}` + " Need one more keystroke, but on average, it may be more comfortable. + nmap s (easymotion-overwin-f2) + + " Turn on case-insensitive feature + let g:EasyMotion_smartcase = 1 + + " JK motions: Line motions + map j (easymotion-j) + map k (easymotion-k) + " } " }