I have opened multiple buffers and I cycle between them using
:bprevious. How can I prevent vim from cycling to the first buffer when using
:bnext on the last buffer / cycling to the last buffer when using
:bprevious on the first buffer?
Basically, I want the same behavior as when opening vim with multiple files in the argument list and cycling between those using
:previous. In that case, vim will show
E165: Cannot go beyond last file when using
:next on the last file and
E164: Cannot go before first file when using
:Next on the first file.
If that is not possible, I could make do with vim displaying a message when cycling to the first / last file, similar to the message displayed when wrapping around a search:
search hit BOTTOM, continuing at TOP.