When using [range]bdelete, if one of the extremes of the range has been wiped out, then Vim gives an E16: Invalid range. For instance:
vim -u NONE -N file1 file2 :1bw :1,2bdelete
This works as expected, however:
vim -u NONE -N file1 file2 file3 :2bw :1,3bdelete
I think that the first example should work as the second one, i.e., it should ignore non-existing buffers.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
That is to be expected, since 1 is no valid buffer number anymore. I would suggest using %bd, that should set the index correctly
Thanks for the info. I think that a symbol denoting “the first buffer”, in the same way as $ denotes “the last buffer”, would make sense then, but I can live with the current behaviour. Feel free to close this.
Fixed by 8.1.1908. Although, that was not the purpose of the patch.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
Closed #2014.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()