phpstorm - 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.
解决方案
推荐阅读
- javascript - Discord.js 禁止命令中的无效表单正文
- youtube-livestreaming-api - 自 2020 年 10 月 1 日以来,Youtube liveStreams 插入出现错误
- angularjs - 已完成 500 INTERNAL_SERVER_ERROR SpringBoot Angular:OneToMany 问题
- node.js - 使用 sequelize 删除父级时如何软删除关联子行
- flutter - 构建我的应用程序时出现不推荐使用的错误
- r - 用 1-10 标记 10 年的数据,而不是 1955-1966
- api - clearMarkers() 和 addMarker() 不起作用
- ruby-on-rails - 在 Heroku 上部署 Rails 应用程序 - 图像在一段时间后消失
- intellij-idea - 是否可以在 JetBrains PhpStorm 中设置项目特定的外观设置?
- javascript - 使用 css 和 javascript 构建的滚动鼠标的边框动画