Picture

Hi, I'm laurence.

I'm a software engineer at Hootsuite, working primarily with Scala.

vim in easy mode with easymotion

With vim, jumping across a line is easy enough with w and b. But anything beyond a few words forward or back is a lot of wwwww or bbbbb. Or you spend a few cycles to figure out you need 7w.

easymotion makes this easy. It overlays text markers to specify potential destinations. I hit W or B plus the desired marker to jump there.

incsearch is great, being able to tab to the next screenful of results (or shift-tab to go the other way). But easymotion has the awesome search for n-chars. Hit s then the search term, optionally tab/shift-tabbing through search results, then finally the marker to go to that point.

map <Leader> <Plug>(easymotion-prefix)
nmap s <Plug>(easymotion-sn)
nmap W <Plug>(easymotion-w)
nmap B <Plug>(easymotion-bd-w)