I use a function called Toggle_num() in my .vimrc that toggles line numbers
on/off, and in the process also resizes the Vim window so that the number of
usable columns in the document stays remains constant.  In Vim <7.0, this
was hardcoded to 8, so I just hardcoded the value in the function.

Now, I can limit the line number column with using the numberwidth option.
I'd like to update this function to grow/shrink the columns by numberwidth
instead of leaving it hardcoded to 8.  Problem is, I can't figure out how to
get the value of numberwidth within the script.

How exactly do I do this?  Thanks.

--
Jared

Reply via email to