4

Is there a good command that will switch to the last buffer (and place) where an edit was made? I would prefer not to have to install a plugin just for this (but if there is no other way then I would).

This is not solved by the BufSurf plugin which actually goes back through the navigation history which was the answer to a question that sounds similar.

kasbah
  • 903
  • 5
  • 23

1 Answers1

7

The previous buffer can be accessed via the alternate file: <C-^> or :e #.

gi / `^ go back to the last edit location in the current buffer.

Unfortunately, there's no command that combines both (but I personally have never missed that).

Ingo Karkat
  • 167,457
  • 16
  • 250
  • 324
  • Thanks for the input, but your answer seems to be: you don't know? – kasbah Mar 02 '15 at 13:13
  • I'm pretty sure about no built-in commands; I don't know any such plugin (even though I closely follow those). A previous, similar question hasn't yielded anything, neither, so I'm gonna close this now. – Ingo Karkat Mar 02 '15 at 13:42