With incsearch
enabled in Vim, the cursor moves to the next match as I type the first character. IdeaVim doesn't seem to respect this setting. How should I turn on incremental search in IDEA?
Just put set incsearch
into your ~/.ideavimrc
The suggestion actually doesn't work (it in fact has a lot of side effects). The best solution I have found so far is to simply use the built-in key combinations (Cmd+F, Enter or Shift + Enter).
Here's one way: IDEA's normal search is incremental, so you could use that one via CMD-F or its equivalent. You could even bind / to invoke IDEA's find command instead of the VIM version if you want:
nmap / :action Find<CR>
nmap n :action FindNext<CR>
in your ~/.ideavimrc
or invoked at the :
prompt. There may be side effects to doing it this way; I haven't tested it extensively.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With