vitaly / dotvim2

modular and easily configurable and extendable `.vim` configuration
MIT License
77 stars 15 forks source link

vim-easymotion support #8

Closed ajeebkp23 closed 4 years ago

ajeebkp23 commented 4 years ago

vim-easymotion (https://github.com/easymotion/vim-easymotion) was one of my favorite plugin for long time. I recently, started using dotvim2. I am really appreciate you hardwork related to dotvim2. Most of the things work out of the box.

However, vim-easymotion doesn't work out of box. Since, it takes as it's primary keybinding.

Here is a workaround for it. Edit ~/.vim/vimrc.plugins. Add following lines at end of the file

call dein#add('easymotion/vim-easymotion')
" ,j is the prefix for easy motion
map <Leader>j <Plug>(easymotion-prefix)

Note: <leader>j is the prefix, instead of <leader><leader>. So, <leader><leader>w will translated to <leader>jw. Assuming leader key is ,, then you will be typing ,jw instead of ,,w. Similarly, you can use ,jk,,jj etc.

ajeebkp23 commented 4 years ago

This is an issue just to document my experience with vim-easymotion. I hope, I have documented it well here.