On Wednesday, November 6, 2013 1:33:33 AM UTC-6, v...@googlecode.com wrote:
> 
> autocmd BufHidden * call OnBufHidden(expand("<afile>"))
> 
> function! OnBufHidden(buffer)
> 
> [snip]
> 
>      if a:buffer == ""
>          echoerr "clsing:".br
>          execute "bw! ".br
>      endif
> endfunction
> 
> 
> 
> What is the expected output? What do you see instead?
> 
> buffer can be wiped out.
> nothing happen.
> 

This function only ever wipes out a buffer if the buffer name is empty.

First of all...why?

Secondly, what is the buffer you are wiping out? Does it actually have
no name?

If so, does your echoerr message appear?

How did you determine that the buffer isn't being wiped?

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui