haya14busa / vim-easymotion

DEPRECATED
https://github.com/Lokaltog/vim-easymotion
23 stars 0 forks source link

Add end of line mappings to J and K #2

Closed takac closed 10 years ago

takac commented 10 years ago

A mapping I find very useful.

haya14busa commented 10 years ago

Thanks for pull request!

Would you mind modifying some code I mentioned above?

takac commented 10 years ago

I have implemented those changes. How do I add the mapping into my vimrc?

haya14busa commented 10 years ago

Thank you!

I fixed regrex missing \ (the regrex code I paste was escaped by GitHub...) so please update.

This is .vimrc example:

map <Leader>J <Plug>(easymotion-J)
map <Leader>K <Plug>(easymotion-K)

See :h easymotion-plug-table

Off topic

This is off topic but, I implemented many useful motion by <Plug> mapping.

I think these motion is interesting.

.vimrc example:

map s <Plug>(easymotion-s2)
map <Leader>. <Plug>(easymotion-repeat)
map <Leader><Leader> <Plug>(easymotion-jumptoanywhere)
map <Leader>h <Plug>(easymotion-linebackward)
map <Leader>l <Plug>(easymotion-lineforward)

If you are interested in these motion, please try them.

Thanks again!

haya14busa commented 10 years ago

@takac I'm sorry. I changed mapping name from <Plug>(easymotion-J) to <Plug>(easymotion-eol-j) because I want to implement start of line JK motion(<Plug>(easymotion-sol-j)).

Updated vimrc example:

map <Leader>J <Plug>(easymotion-eol-j)
map <Leader>K <Plug>(easymotion-eol-k)

Thanks.

takac commented 10 years ago

Fantastic. Thanks for all the help and examples. Looking forward to trying out all these new motions in your fork.