通过快速搜索在字符之间移动点
我正在寻找在 vim 中导航的更快方法。
假设我在缓冲区中打开以下文本:
Vim 是一个高度可配置的文本编辑器,旨在实现高效 文本编辑。它是分布式 vi 编辑器的改进版本 对于大多数 UNIX 系统。 Vim 作为慈善软件免费分发。如果 你发现 Vim 对你的生活很有用
目前,我的光标位于第 1 行第 1 个字符。
如果我想将光标移动到单词 version
的开头, 通过使用简单的光标移动(hjkl
键)移动到特定的行和字符会相当慢。
现在,我正在寻找您可以使用的命令,例如 '
也许?。因此,您只需输入类似 'version
的内容,光标就会跳转到该单词。
我希望这是可能的(我需要一个插件吗?)
I'm looking for quicker ways to navigate in vim.
Say, I open the following text in a buffer:
Vim is a highly configurable text editor built to enable efficient
text editing. It is an improved version of the vi editor distributed
with most UNIX systems. Vim is distributed free as charityware. If
you find Vim a useful addition to your life
Currently, my cursor is on line 1, character 1.
If I want to move the cursor to the start of the word version
,
that would rather slow by using simple cursor movement (hjkl
keys) to move to the specific line and character.
Now, I'm looking for the command that you could use, like '
perhaps?. So you'd just need to type something like 'version
, and the cursor jumps to that word.
I hope this is possible (do I need a plugin for this?)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我花时间把问题写得更清楚了。
除了已经提到的搜索功能:
/
版本
我建议
启用增量执行此操作时进行搜索(甜蜜)
,以动态突出显示(增量)匹配
字符搜索:
在行内,您可以使用 fv 到跳转到下一个
v
(Fv 向后搜索)。您可以导航句子(使用 )、()
这是你可以吃的一切,就像糖果店里的孩子一样!这是糖果店:
:hemotion.txt
I took the time to write the question a bit clearer.
In addition to the search functionality already mentioned:
/
version
I suggest to
which enables incremental search while doing that (sweet)
for on the fly highlighting of (incremental) matches
Character searches:
Within lines, you can use fv to jump to the next
v
(Fv to search backwards).You can navigate sentences (using ), ()
It's all you can eat, like a kid in the candy store! Here is the candy store:
:he motion.txt
如果您在想要前往的点之前:
/version
,则如果您在之后你想要去:
?version
然后有关更多信息,请输入:
:help search-commands
If you are before the point you want to go:
/version
then<Enter>
If you are after you want to go:
?version
then<Enter>
For more info type:
:help search-commands