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 :edited file. please report problem vim_dev mailing list.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -