Vim Window Size

I have a couple entries in my vimrc configuration that I need:

map - <C-W>-
map = <C-W>+


When you have multiple windows open you can change their size with "Control-w" and '+' or '-' (note that you need to be holding SHIFT to get a '+' sign). This will change the window size one line at a time. If your extremely suave and can count line numbers in your head you can prepend the number of lines you would like to move and the keyboard shortcut isn't all that bad.

I can't count the lines in my head, so I use the above macro. Since I work with multiple windows constantly I have the increase and decrease size bound to '-' and '=', I use equal so that I don't have to press SHIFT for one but not the other.

Comments

  1. Also, if you have a vertical split, " >" and " <" change size to the right, change size to the left.

    ReplyDelete
  2. Also, if you have a vertical split, Ctrl+ w + > and Ctrl + w + < change size to the right, change size to the left.

    ReplyDelete

Post a Comment

Popular posts from this blog

Decommissioning the cloud: A self-hosted future

Using a JFileChooser to browse AWS S3

Taking Stuff Apart: Realistic Modulette-8