On 2009-09-18, Daniel Fetchinson wrote:
> Hi vimmers,
> 
> I use quickfix quite often and I like the feature very much,
> especially with :make. The one problem I couldn't solve is that if
> file1.c is open and I do a :make then instead of file1.c another file
> will be open, say file2.c, which is the file containing the first
> error. This is all good, but often I forget the original file name, in
> this case file1.c, and after inspecting the errors I'd like to go back
> editing it. Is there a way of telling vim "go back to the file that I
> was editing when I said :make"?

I use Ctrl-O (letter o) for this.  See

    :help CTRL-O

You may have to type it a couple of times to get back to your
original file.  Or you can execute

    :jumps

to see a list of places you've been and if you recognize the file
name, jump to it directly.  Or, you can execute

    :buffers

to see a list of buffers you've had open during the current session
and again if you recognize the file name, open that buffer with

    :b <buffer number>

or a number of other ways you can read about at

    :help buffer

HTH,
Gary



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

Reply via email to