Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Fugitive's Gstatus window height

Tags:

git

vim

I am using Tim Pope's Fugitive plugin and I wish to change the :Gstatus default height. How can I accomplish that?

like image 901
josemota Avatar asked Dec 02 '11 10:12

josemota


2 Answers

I use this solution: nnoremap <silent> <Leader>gs :Gstatus<CR>:20wincmd_<CR>

like image 199
dkiyatkin Avatar answered Sep 29 '22 10:09

dkiyatkin


It loads it into the preview window, so you can set the previewheight option. It will however apply to all other uses of preview window (like omnicomplete) too.

set previewheight=20
like image 38
Jan Hudec Avatar answered Sep 29 '22 10:09

Jan Hudec