Jean-Rene David wrote:
Say I open vim7's new super duper file explorer
"netrw" to browse some local directory. Say then I
decide I don't want to open any new file and just
want to go back to what I was doing. What would be
the standard way to do that?
I can use <C-O> to eventually land up where I was
but I need to backtrack all the motion commands I
did in the netrw buffer.
You can use the jumplist to get a listing of locations where you've been:
:ju
The left hand column is a count that you can use to precede <c-o>.
For example:
jump line col file/line
3 1 0 some text
2 70 0 another line
1 1154 23 end.
and 3<c-o> will jump to entry #3.
Regards,
Chip Campbell