I often program with lines no more than 80 characters long. I start with an 80-character-wide terminal, but sometimes due to a plugin runs or after creating a vsplit results in the editing area being less than 80 characters wide.
For example, :set number
will take four columns from the editing area and use them for line numbers. After this, using :vertical resize
, only changes the size relative to other splits, it doesn't widen the window.
Is there a way to keep the width of the editing area at a fixed width or to quickly resize the editing area or the window to a specified width?
set columns=90
will resize a gvim, but unfortunately that's the total width, not the width of the displayed text. So you'd have to use 84+ with numbers on.