gregsexton / gitv

gitk for Vim.
938 stars 59 forks source link

feature request: need an option to specify gitv window heigh. #30

Closed stardiviner closed 12 years ago

stardiviner commented 12 years ago

Just like title said, I hope I can set the heigh value of gitv window, so that I can leave more space for diff preview window.

gregsexton commented 12 years ago

Hi,

I don't really want to clutter gitv with any more configuration options than necessary.

You should be able to put something like the follwing in your .vimrc to get the effect you're after:

augroup MyGitv
    au!
    au WinEnter gitv-* resize 20
augroup END

Obviously, change 20 to whatever height you're after. You may wish to experiment with the event. WinEnter is going to fire everytime you move into the window, this will effectively prevent you from resizing at all. Perhaps BufCreate would be better, but I haven't tested this.

Let me know if this doesn't work out for you.

Thanks,

Greg

stardiviner commented 12 years ago

thanks, this work very good.