ezuk
ezuk

Reputation: 3196

Quick-search using VIM and Netrw on Windows

I use VIM 7.2 on Windows, with the latest netrw (141i, Jan 03 2011).

I use netrw for browsing remote FTP directors. Right now, when I want to navigate to a certain file, I type /<filename> and VIM's own search function gets the cursor there. I then have to hit ENTER twice (once to exit search mode, and then again to make netrw "execute" that file).

I'm sure there's a better way to do this. Any ideas?

Thank you.

Upvotes: 1

Views: 1112

Answers (2)

Xavier T.
Xavier T.

Reputation: 42228

You can use : set incsearch in your .vimrc to enable incremental search.

You'll still have to type <Enter> twice but you won't have to type the complete filename !

Upvotes: 0

Benoit
Benoit

Reputation: 79185

It seems that you have the 'incsearch' setting which displays occurrences of a pattern as you type it. It is necessary to hit enter to validate the pattern, then you're back to your buffer.

Maybe the Fuzzyfinder plugin could help you be quicker.

Upvotes: 1

Related Questions