Note: Possible fixed bug. See comments.
A somewhat minor nuisance, but as the pedantic for these things :P
When saving and opening a Session file the Session.vim file does:
badd +1 file1
badd +1 file2
badd +1 file3
…
This result in buffer numbering starting with 2 instead of 1.
I notice some Session files use badd +0
instead of badd +1
, but this does not make any difference.
One way to circumvent this is to comment out first file in the session file and open Vim by:
vim file1 -S Session.vim
Is there a way to do this in the session-file instead?
I have tried to replace badd
with edit
for first file in Session.vim, but that does not work. (File does not get opened at all.)
VIM 8.0 patches: 1-1453
https://packages.ubuntu.com/bionic/vim
Also tested with vim -u NONE -S