Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing default behavior. #57

Closed
greduan opened this issue Dec 21, 2012 · 4 comments
Closed

Replacing default behavior. #57

greduan opened this issue Dec 21, 2012 · 4 comments

Comments

@greduan
Copy link

greduan commented Dec 21, 2012

@Lokaltog
What would be the best and safest way to do this? Replace default behavior I mean.

Instead of pressing <leader><leader>f (it's how I like it) how can I make it just accept f and be done with it?

When I tried doing the following

let g:EasyMotion_leader_key=''

It broke navigation, because it apparently also uses keys like j etc.

So once again, what would be the safest way to replace default navigation with this? Only the search forward/backwards features. So that I can press f and it will launch EasyMotion instead of the default.

@tssm
Copy link

tssm commented Mar 27, 2013

What I did is:

let g:EasyMotion_mapping_f = 'f'

It works great, except with w, because it breaks things like cw (change word).

@albertnetymk
Copy link

@taecilla I put the same (at least I believe it's the same) in my vimrc. However, the original 'f' command takes the precedence. Am I missing something?

let g:EasyMotion_mapping_f = 'f'

@haya14busa
Copy link
Member

https://github.com/haya14busa/vim-easymotion/blob/master/doc/easymotion.txt#L122

My fork version of EasyMotion support <Plug> mapping.

Example:

nmap s <Plug>(easymotion-s)
xmap s <Plug>(easymotion-s)
omap z <Plug>(easymotion-s)

Unlike gloval variable mapping, <Plug> mapping provide more flexible mapping and consistent with vim's one.

@haya14busa
Copy link
Member

Please use <Plug> mapping. You can freely configure mapping by the same way of vim's default mapping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants