paint-brush
Automatic Window Resizing in Vimby@sambernheim
3,207 reads
3,207 reads

Automatic Window Resizing in Vim

by Sam Bernheim3mJune 30th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A common workflow in Vim is to use multiple windows to view and edit various files at the same time. Once opened though, the size of each window often remains unchanged unless explicitly resized. A nicer workflow would be for the focused window's width to automatically expand. It's accomplished with the following snippet that uses an autogroup to call a function on the " ReduceNoise" autocmd! " Automatically resize active split to 85 width" The second line equalizes the width and height for all the other unfocused windows.
featured image - Automatic Window Resizing in Vim
Sam Bernheim HackerNoon profile picture
Sam Bernheim

Sam Bernheim

@sambernheim

Software Engineer @ Twitter

Learn More
LEARN MORE ABOUT @SAMBERNHEIM'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Sam Bernheim HackerNoon profile picture
Sam Bernheim@sambernheim
Software Engineer @ Twitter

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite