when executing autocommands, bufnr('<afile>') always return -1,
bufname('<afile>') returns empty, but expand('<afile>') works.

Ugly workaround is to use bufnr(expand('<afile>'))

-- 
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

Raspunde prin e-mail lui