Is it possible to use reset an alternative buffer in a vim session for what it was before?
In the alternate buffer, I mean the one referenced by #, i.e. the one that appears when you type cntl - ^.
Let's say I have two files open main.c and other.c and: ls gives me:
1 %a "main.c" lines 27 2 # "other.c" lines 56
Let's say I open another file, for example. refer.c :: ls will now give me:
1 %a "main.c" lines 27 2 "other.c" lines 56 3 # "refer.c" lines 125
If I delete the buffer containing refer.c: ls now shows:
1 %a "main.c" lines 27 2 "other.c" lines 56
But if I do cntl- ^, the link will be displayed again!
Is there any way to return vim to reset an alternative buffer back to the fact that it was automatically last time? The "history" of alternative buffers?
Or am I stuck in execution: 2 b to reload other.c in an alternate buffer?
Or maybe there is a good reason for this behavior?
source share