Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fixing the size of a window in vim

Tags:

vim

Is there a way to fix the size of a window in vim? In a way that when I do a Ctrl-W _, it would maximize the current window but the one I fixed the size would stay same.

like image 229
rgngl Avatar asked Dec 17 '09 12:12

rgngl


People also ask

How to adjust window size Vim?

To resize all windows to equal dimensions based on their splits, you can use Ctrl-w = . To increase a window to its maximum height, use Ctrl-w _ . To increase a window to its maximum width, use Ctrl-w | . In Gvim and vim in terminals with mouse support, it is also possible to use the mouse to resize a window.


1 Answers

I think the options you're looking for are:

set wfh  
set wfw 

(set WinFixHeight, set WinFixWidth)
You can set them on the window that you want to stay the same, but unfortunately only Ctrl-W = listens to that, not Ctrl-W _

like image 51
Nick Knowlson Avatar answered Oct 27 '22 09:10

Nick Knowlson