googler wrote:
> Suppose I am editing/viewing a file and searching for different
> regular expressions in the file, for example, issuing commands "/
> abcd", "/efgh", "/ijkl" and "/mnop". Since my last search was for
> "mnop", that's what I have highlighted currently. Now if I want to go
> back to the previous search or the one (or two) before that, what is
> the easiest way to do that? I do not want to type the whole search
> string again. Is there a shortcut? If not, does there exist any script
> that I can use to get this functionality?

After pressing "/" you should be able to use up/down (or 
control+P or control+N) to navigate the search history.

You can also use

   q/

to pull up the command-history window for the search.  This 
allows you to modify the query as if it was a vim buffer itself.

You can read more at

   :help c_<up>
   :help cmdline-history
   :help q/

It stores 'history' number of previous items (defaults to 20 
items), and assumes that your version of vim was built with 
+cmdline_hist (check the output of ":ver" to verify)

-tim






--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to