On Saturday, April 7, 2012 7:33:12 PM UTC-7, roho wrote: > 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. > </div></div>
Your question has been accurately answered already, but I thought I'd mention another, general-purpose technique. You can set a global mark with mA, then 'A when you want to return. ///ark Mark Wilden Web Applications Developer California Academy of Sciences -- 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
