Sunday, September 5, 2010

Re: Fwd: How to keep windows size unchanged?

On 09/05/2010 03:28 PM, G H wrote:
> Hi,
> Every time I split a new window and quit that window after some operation.
> But then the remaining windows' sizes are changed compared to before
> splitting.
> For example, I have two horizontal windows before splitting, the bottom
> one is much more
> higher than the upper one.But after quiting, these two are the same in
> height.
>
> What I want is their sizes are unchanged just as before,How could I get
> that?
>
> Regars
> Gouven
>

You can use this function:

func! DelBuffer()
let bufname=expand('%')
bnext
exe ":bdelete " . bufname
endfunc

-ak

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