首页 > 解决方案 > Select next occurence with IdeaVim in PhpStorm

问题描述

The nifty CTRL-G on Mac, which selects the next occurence of a word, does not work when IdeaVim is activated. So for quite a while, I've just lived with disabling IdeaVim, every time that I want to do a multi-selection as such. But I use it more and more. Are there a work-around, to get it to work?

... Or can I do it VIM-style somehow?


Concrete example

If I have something like this:

$foo = 123
if( isset( $foo ) ){
  echo $foo;
} // if( isset( $foo ) ){

And I want to select all $foo and replace it with $bar.

If I didn't use IdeaVim, then I'd be able to select the first $foo and press CTRL-G 4 times (or press CTRL-CMD-G if I want to select all of them), and then write $bar.

... Currently, I just deactivate IdeaVim, and do it.


Further notes

I have tried and empty my .ideavimrc-file to ensure that it isn't something in there, that collides with it. And the result is the same.

标签: phpstormwebstormideavim

解决方案


IDE如果你想执行想法动作而不是 vim 的动作,你可以选择冲突映射的处理程序。

在此处输入图像描述


推荐阅读