> " Make sure, the b:undo_ftplugin is also executed deleting the buffer
> BufUnload * if exists("b:undo_ftplugin") | exe b:undo_ftplugin | endif
>
> But I am not sure, where to put this script. Perhaps also put this into
> ftplugin.vim?
According to the documentation, BufUnload event may be triggered when current
and unloaded buffers are different. And, according to the same doc, you must
not change buffers on this event. Thus you must not put the above autocommand
anywhere.
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php