user2081554
user2081554

Reputation:

Vim suggestions for search commands / and?

Is it possible to have search suggestions for vim while typing in ? or / command? Im looking something like... aka neocomplete, fuzzyfinder... see the image.

enter image description here

Upvotes: 1

Views: 121

Answers (1)

Ingo Karkat
Ingo Karkat

Reputation: 172540

After typing /, you can press <C-f> to open the command-line window. 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>. You can also directly enter this mode via q/. To recall a previously used search, <Up> is quicker, though.

There are plugins that allow to complete words from the open buffer(s) into command-line mode. I use CmdlineComplete.

Upvotes: 3

Related Questions