AnswerBun.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!

Related Questions

How to return from vimscript.python?

0  Asked on August 31, 2021 by niekas

 

Presentation of non-printable characters in messages

0  Asked on August 31, 2021 by feedforward

 

How do you “chomp” a string in Vim?

4  Asked on August 31, 2021 by bdesham

 

Properly restore terminal title after suspending vim

2  Asked on August 31, 2021 by ravron

   

Set cursor in quickfix on autocmd event

2  Asked on August 31, 2021 by kirill-bugaev

 

tabs after pastetoggle instead of spaces

1  Asked on August 31, 2021 by aldwinaldwin

     

Cursor in middle of the screen at start and end of file

1  Asked on August 31, 2021 by phantom

 

How can I still see underscores with cursorline?

1  Asked on August 31, 2021 by sparhawk

   

gvim: Make the mouse follow CTRL-W_j and CTRL-W_k

0  Asked on August 31, 2021 by michael-scheper

       

Change match highlights on CmdlineLeave

0  Asked on August 31, 2021 by biggybi

     

Un-tab the cursor

1  Asked on August 31, 2021

 

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir