On 09/05/09 21:20, Bram Moolenaar wrote:
Dasn wrote:
Accessing buffer in 'BufDelete' or 'BufWipeout' autocmd makes hidden
buffer displayed. Here's the test code:
[...]
You are shooting yourself in the foot. In the BufWipeout command you
should not start editing another buffer, weird things
Tony Mechelynck wrote:
On 09/05/09 21:20, Bram Moolenaar wrote:
Dasn wrote:
Accessing buffer in 'BufDelete' or 'BufWipeout' autocmd makes hidden
buffer displayed. Here's the test code:
[...]
You are shooting yourself in the foot. In the BufWipeout command you
should not start
Hi,
Accessing buffer in 'BufDelete' or 'BufWipeout' autocmd makes hidden
buffer displayed. Here's the test code:
fun! WipeOutAll()
for i in range(1, bufnr('$'))
exe silent! bw i
endfor
endfun
fun! OnRemoving()
let name = expand('afile')
exe b name
call append($,
Dasn wrote:
Accessing buffer in 'BufDelete' or 'BufWipeout' autocmd makes hidden
buffer displayed. Here's the test code:
fun! WipeOutAll()
for i in range(1, bufnr('$'))
exe silent! bw i
endfor
endfun
fun! OnRemoving()
let name = expand('afile')
exe b name