Saturday, April 7, 2012

Re: How to go back after *

On Sat, Apr 7, 2012 at 5:18 PM, Dotan Cohen <dotancohen@gmail.com> wrote:
> If one uses * to find the definition of a constant, how can he return
> to the location where he pressed *? I tried Ctrl-O but it did not take
> me back. Furthermore, "help *" did not have any information regarding
> how to go back. I was not in Insert mode in the last location so `.
> will not take me there either. Does one have to set a mark to get
> back? That seems very annoying.

'N' takes you back. More specifically it repeats the search in the
opposite direction.

See
:help pattern


--
Albin Olsson, IT Consultant and Classic Connoisseur
www.albinolsson.se | albin.olsson@gmail.com
+46 707 831 830

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: