History
Article Edit this page Discussion

Custom resizing on the spot

From Vim Tips Wiki

(Redirected from VimTip1302)
Jump to: navigation, search

Tip 1302 Previous Next Created: August 11, 2006 Complexity: basic Author: atomik fungus Version: 5.7


This was inspired by VimTip173. Sometimes you don't want to have your windows on their max or min width (length) so I added the following commands to my vimrc.

"This two change in between vertical windows maximizing their length, and if you keep them pressed they will increase width by 2 columns steps.
"very nice when lines are too long to fit in just one row.
nmap <c-h> <c-w>h<c-w>_<c-w>><c-w>>
nmap <c-l> <c-w>l<c-w>_<c-w>><c-w>>

The same can be done for the horizontal split.

[edit] Comments

 TO DO 
Take the time to figure out how to make this useful. By length the author means height. Should use a repeat number. If you need this tip to increase the width, won't you need a way to decrease it?


Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Pixar
Legend of Zelda Wiki
Terminator Wiki
Everquest II Wiki
Dark Shadows
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions


Vote for collaboration of the month.

Send this article to a friend
"Custom resizing on the spot"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation