2010/9/5 AK <andrei.avk@gmail.com>
You can use this function:
func! DelBuffer()
let bufname=expand('%')
bnext
exe ":bdelete " . bufname
endfunc
-ak
thanks ak.
But maybe because I didn't have my problem described clearly, so as to make you misunderstood.
I'm sorry for that.
This function works well, but the result is not what I want. Thank you very much after all.
OK, let me attach some figures to explain again, it may take you some time to check, sorry again,
but I can't think of a better way.
BeforeSplitting.png: the window layout before I split a new window.
AfterSplitting.png: the window layout after I split a new window.
AfterQuiting.png: the window layout after I quit the recently splitted window.
You can find the window layout is changed in AfterQuiting.png correspond to that in BeforeSplitting.png,
which is not I want to see.
How to figure this out?
thanks again
But maybe because I didn't have my problem described clearly, so as to make you misunderstood.
I'm sorry for that.
This function works well, but the result is not what I want. Thank you very much after all.
OK, let me attach some figures to explain again, it may take you some time to check, sorry again,
but I can't think of a better way.
BeforeSplitting.png: the window layout before I split a new window.
AfterSplitting.png: the window layout after I split a new window.
AfterQuiting.png: the window layout after I quit the recently splitted window.
You can find the window layout is changed in AfterQuiting.png correspond to that in BeforeSplitting.png,
which is not I want to see.
How to figure this out?
thanks again
--
You received this message from the "vim_use" 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
No comments:
Post a Comment