vim plugin - Extraneous BufUnload event triggered in vim -
i run vim no file on command-line, shows scratch buffer. when run
:e foo
to edit file 'foo', there bufunload event triggered file 'foo'. here test vim command use demonstrate issue:
autocmd bufunload * echom "unloaded " . expand("<afile>")
does know causing this, , if there way detect situation , ignore it?
i can reproduce latest vim 7.4a.39. guess has fact vim reuses initial scratch buffer number (1) first :edit
ed file. please report problem vim_dev mailing list.
Comments
Post a Comment