My overall goal here is simple, but the specifics are complex:
I want to maintain each vertical split in my MacVim window at exactly 115 columns, regardless of how many splits I add.
The story: I’m using the Janus distribution of MacVim (and am fairly new to the whole vim thing); it ships with NERDTree. I usually use NERDTree or the command-line to open a few related files in vertical splits. Currently, this results in me having to manually resize the MacVim window with the mouse, and then ⌃w= (or the equivalent
wincmd =) to split the newly available space amongst my vertical splits. This annoys me.
The eventual goal is, upon the addition or removal of a vertical split (but not any new ‘vim viewport’, as I ocassionally utilize a horizontal split in a particular vertical split), as well as upon the opening of a new MacVim window/instance/whatever, to adjust the width of the entire MacVim window to ensure each existing vertical split (including the new one) has exactly
N columns for its textual content. (I, personally, write code at
N := 115, many people use
N := 80.)
I realize it’s a complex and possibly impossible request, so anything approaching this solution would be appreciated. (=