AlexPl292 / IdeaVim-EasyMotion

EasyMotion emulation plugin for IdeaVim

Home Page:https://plugins.jetbrains.com/plugin/13360-ideavim-easymotion/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

what's the default leader key?

huahuayu opened this issue · comments

hi, I am new to easymotion, I never used it before in vim, but in vscode, I happened found when I press space, I get options to jump to, I think the function is called easymotion, because when I press space there's a word EASYMOTION comes to the bottom line.

So I search for the plugin in jetbrains, I use vim plugin in jetbrains. I want the same trick in jetbrains.

I have IdeaVim, AceJump, IdeaVim-EasyMotion installed.

The problem is, after install your plugin, when press space, the behavior is different from vscode. I don't know how to use it.

So what's your IdeaVim-EasyMotion default leader key, readme doesn't say.

If you give more guidelines that will be appreciated.

Hey, the default leader key in vim and IdeaVim is \. You can remap it to space using let mapleader=" " in ~/.ideavimrc file. Also, don't forget that you should add set easymotion to the same file.

I was about to type this question as well. In my intellj I type backslash(twice) then I type f and then I type a character that I want to go to, but its not working. I am new to vim, do I need to do anything else? Sorry this might sound like a stupid question, do you know exactly what characters I need to type to get easymotion to work?

I am doing this now:

\\fL

where L is the character I want to go to(i.e., there is a variable Long and I want to go to Long).

P.S. I have followed setup section and have installed ideavim, acejump, ideavim-easymotion and then wrote

set easymotion

in my .ideavimrc

@AlexPl292
I have all the three plugins installed and enabled, and set easymotion added to ~/.ideavimrc

restart webstorm 2020.1

image

the problem:

  1. \ key is not working, nothing happened, and the bell ring. Sounds like an invalid key.
  2. remap it to space using let mapleader=" " in ~/.ideavimrc also not working, press space key the cursor just go right same as -> key

@huahuayu the leader key should be pressed twice. So, if you want, for example, jump to character x you should enter \\fx.
If it won't work for you, could you please attach log file? https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files

@rohitkrishna094 could you please attach the log file (see the link above)

hi, @AlexPl292 finally I get to know how to use, \\f is the trick. I just tried, it works, great!

In retrospect, before you tell me to use \\f[keyword]I think two things made me confused, 1. which is the leader key? 2. I don't know the leader key \ should press twice, AND followed by an f.

Could you please add them to the document, make other people's life a little bit easier :)

Yes, definitely. Thank you very much for the issue, it made me understanding that the documentation should be improved.

Thank you for your support! I read the document again, actually there's a key list attached. But unfortunately, I can't understand in the first place.

I suggest use a short video (with keycastr will be even better) or gif animation to demonstrate the feature will be good.

@AlexPl292 Idk what happened, but after remapping the leader, it's working now. Thanks.