I am working with multiple buffers open, and I open a new file, but I made a mistake and it was not the file I wanted, in fact it wasn't at all relevant to my current work. So I do :bwipeout! to close that buffer. This brings the focus back to my previous buffer, okay fine.
Unfortunately if at any point in future I start using CTRL-O to get back to where I was working earlier, now the unwanted file is in the jump list, and that file opens again!
This is undesirable, since I did bwipeout! specifically because I didn't want to work with that file any more. I cannot think of a situation where this behaviour would be desirable.
When using bwipeout or bwipeout! I would like all references to that buffer dropped from the jump list. (And indeed from anywhere else it my be references in Vim's state.)
Alternative: When doing jumps, do not open any files which are not already open. Unfortunately, that would significantly change Vim's traditional behaviour. However it might be acceptable if the new behaviour was behind an option, and disabled by default.
Should this new behaviour apply to bdel and bdel! as well?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
Closed #8201 as completed via 4ff3a9b.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()