TransWikia.com

when viewing the nerdtree window, how can i widen it?

Vi and Vim Asked by abbood on September 4, 2020

I know if i have a horizontal pane at the bottom I can write something like

copen 50

and make it taller. How can i make a vertical pane wider?

enter image description here

One Answer

In the Vim vocabulary what you call a "pane" is actually a "window" and the window you want to resize has nothing particular so :h window-resize should give you all you need, especially:

                        *CTRL-W_>*
CTRL-W >    Increase current window width by N (default 1).

So ctrl+w> will increase the window size once and 10ctrl+w> will do the same thing 10 times.

If you need to change the size in a script you want to read :h :wincmd which allows you do to the same thing as the ctrl+w normal commands.


Also :copen probably doesn't do what you think: it opens a window containing the quickfix list. If you want to open a vertical split you probably want :split or ctrl+ws

Answered by statox on September 4, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP