本文介绍了PhpStorm IdeaVim突出显示并跳至搜索词,然后按Enter(例如Sublime Text或Vim)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用Vi模式或Vim的Sublime Text中,当您开始搜索时:

In Sublime Text with Vi mode or Vim, when you start searching for:

/foobar

不仅会突出显示"foobar"的所有实例,而且编辑器还可以跳转"到搜索字词的第一个实例,而无需按回车键.

all instances of "foobar" are not only highlighted but the editor "jumps" down to the first instance of the search term without having to hit enter.

但是在带有IdeaVim的PhpStorm中,当我键入

But in PhpStorm with IdeaVim, when I type in

/foobar

在按下Enter键之前什么也不会发生,换句话说,直到按下Enter键,我才知道我是部分比赛还是全部比赛.

nothing happens until I hit enter, in other words, I don't know if I have partial or full matches until I press the enter key.

如果有的话,我可以让IdeaVim突出显示后按Enter键

I can get IdeaVim to highlight after pressing enter if I have

:set hls

IdeaVim将用红色突出显示所有"foobar"匹配项.

IdeaVim will highlight all of the "foobar" matches in red.

有人知道如何配置PhpStorm或IdeaVim以自动突出显示 ,然后在我按Enter键之前跳转到我搜索词的第一个实例?

Does anyone know how to configure PhpStorm or IdeaVim to automatically highlight and jump to the first instance of my search term before I hit enter?

推荐答案

IdeaVim尚不支持此功能(0.39).在IdeaVim的问题跟踪器中有一项功能请求: VIM-271 ,您可以投票以便接收状态更新.

IdeaVim doesn't support this feature yet (0.39). There is a feature request for it at IdeaVim's issue tracker: VIM-271, you can vote for it to receive status updates.

这篇关于PhpStorm IdeaVim突出显示并跳至搜索词,然后按Enter(例如Sublime Text或Vim)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-18 15:14