简体   繁体   English

Vim有关搜索命令的建议/和?

[英]Vim suggestions for search commands / and?

Is it possible to have search suggestions for vim while typing in ? 键入时可能有关于vim的搜索建议吗? or / command? 或/命令? Im looking something like... aka neocomplete, fuzzyfinder... see the image. 我看起来像...又名neocomplete,fuzzyfinder ...看到的图像。

在此处输入图片说明

After typing / , you can press <Cf> to open the command-line window. 键入/ ,您可以按<Cf>键打开命令行窗口。 In it, you can select / search for previous search patterns, edit them (just like in a normal buffer), and use the current one via <Enter> . 在其中,您可以选择/搜索以前的搜索模式,对其进行编辑(就像在普通缓冲区中一样),然后通过<Enter>使用当前的搜索模式。 You can also directly enter this mode via q/ . 您也可以通过q/直接进入此模式。 To recall a previously used search, <Up> is quicker, though. 但是,要调出以前使用的搜索, <Up>更快。

There are plugins that allow to complete words from the open buffer(s) into command-line mode. 有一些插件可以将打开的缓冲区中的单词完整地转换为命令行模式。 I use CmdlineComplete . 我使用CmdlineComplete

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM