pertrai1
pertrai1

Reputation: 4318

Vim CommandT Window Height

I am using CommandT and when I use <leader>t, the window only starts with a partial set of directories shown, whereas I would prefer to have all of the directories show and/or files. I prefer that it takes up most of the height of vim, in the terminal, as possible. Is there anyway to make a change to CommandT? I have read the help but don't seem to see anything related to why I only see 10 results to start with instead of as many as the window can show. I have not changed any mappings or options for the plugin.

Thank you for your help.

Upvotes: 0

Views: 184

Answers (1)

Daniel Mentz
Daniel Mentz

Reputation: 26

This behavior has been changed by the commit "Switch some defaults to more reasonable values".

Insert

let g:CommandTMaxHeight=0

into your .vimrc file. Just running this command after VIM has already started up did not work for me presumably because the Command-T ruby code makes a copy of this value when it starts up.

g:CommandTMaxHeight is defined as:

The maximum height in lines the match window is allowed to expand to. If set to 0, the window will occupy as much of the available space as needed to show matching entries. (default: 15)

Run the VIM command

:help g:CommandTMaxHeight

for more details

Upvotes: 1

Related Questions