Saturday, April 7, 2012

Re: gf - How to get back in one hop

Roy Fulbright <rfulbrig@hotmail.com> writes:

> While editing a file, I issue the 'gf' command while the cursor is on
> a file name and the file is opened in the editor. I move around in
> the newly opened file and issue ctrl-o multiple times to retrace my
> steps back to the original file where I ran the 'gf' command. How can
> I return to the original file in one step? I have tried 999ctrl-o,
> but ctrl-o wants an exact number. I can see the number of steps using
> :jumps and when I enter ctrl-o with the exact number I get back to
> the original file, but I am looking for a way to avoid the manual
> process of getting the number from :jumps and then use that number
> with ctrl-o.

:help Ctrl-^

--
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: