easymotion / vim-easymotion

Vim motions on speed!
http://www.vim.org/scripts/script.php?script_id=3526
7.5k stars 362 forks source link

Minimal but useful vimrc example forces me to manually reload config file #385

Open kswope opened 6 years ago

kswope commented 6 years ago

I've been using the default settings for easymotion for years with no problem, but I decided to do some enhancements to my config so I started with the section in the README, using just copy-n-paste. But something happens I cant explain, everything works fine, except these new mappings, until I :so % , and then everything works!

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 <Plug>(easymotion-overwin-f)
" or
" `s{char}{char}{label}`
" Need one more keystroke, but on average, it may be more comfortable.
nmap s <Plug>(easymotion-overwin-f2)

" Turn on case insensitive feature
let g:EasyMotion_smartcase = 1

" JK motions: Line motions
map <Leader>j <Plug>(easymotion-j)
map <Leader>k <Plug>(easymotion-k)