Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shortcut to make all split screens have the same width?

Tags:

vim

macvim

When I open gvim -S (with a session) my split screens' widths are screwed up and I have to manually adjust them.

Is there a shortcut to make all split screens the same width ?

Thanks

like image 845
Running Turtle Avatar asked Sep 30 '11 11:09

Running Turtle


People also ask

How do I maximize a window in half screen?

Windows also gives us keyboard shortcuts to split the screen. At any time you can press Win + Left/Right Arrow to move the active window to the left or right.

How to split a screen in half on Windows 10?

Now let’s start to divide the screen into two, followed by three and four divisions. This is very simple. Just hold and keep dragging the window on either side till you see the split indication: Subsequently, you can do this for the other window to split the display in half.

What is the split screen feature on Android?

This unified split-screen system means that developers can create apps with split-screen functionality that works on all phones and tablet running Android 7.0 or higher the same way. With that said, here’s an app that allows you to create home screen shortcuts that automatically open a pair of apps side by side.

How do I extend the screen across multiple monitors?

Extend screen across multiple monitors. To split the screen on one monitor, allowing you to see two program windows at the same time, side by side, follow the steps below. Press and hold the Windows key. Press the left or right arrow key. If you press the left arrow key, the active program window shows on the left side of the split screen.

How do I select the second half of my screen?

When the window you want to select for the second half of your screen is framed, confirm the selection by pressing the Enter key. Once you’ve placed the first window in a quarter of your screen, the miniature view disappears.


2 Answers

This should normally work:

    C-w=
see window-resize

There are exceptions with windows that maintain a minimum/maximum width. This is frequently the case with 'sidebar' style plugins (taglist, nerdtree); In which case it is probably only what you wanted when they don't resize.

like image 200
sehe Avatar answered Sep 20 '22 08:09

sehe


From the vim help pages:

CTRL-W =    Make all windows (almost) equally high and wide, but use             'winheight' and 'winwidth' for the current window.             Windows with 'winfixheight' set keep their height and windows             with 'winfixwidth' set keep their width. 
like image 32
Michael Foukarakis Avatar answered Sep 21 '22 08:09

Michael Foukarakis