On Wed, 27 Oct 2010, Martin Lundberg wrote:

Hi,

I'm trying to write a buffer navigator plugin and it is somewhat working but I'm having problems with the resize command. In my script I fetch all the open buffers, and then I resize the window to the same size as the number of buffers.

http://github.com/marlun/vim-gotobuffer/blob/master/plugin/gotobuffer.vim#L48
is a link to the line which calls the method which runs resize and
http://github.com/marlun/vim-gotobuffer/blob/master/plugin/gotobuffer.vim#L95
is the resize call.

For some reason the window is allways resized to 1 line even though the argument sent to the s:set_window_height method is a bigger number like 3.

Would really appreciate an explenation of what I am doing wrong. As a bonus if someone could also tell me why the buffer I create in my plugin has a extra line added at the top that would be great too :)

Guesing that it's 'winminheight' coming into play:

:help 'winminheight'

--
Best,
Ben

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

Reply via email to