How do I change the width of the line numbers displayed using the

“number” option? You can set the minimum number of columns to be used for line numbering by setting the ‘numberwidth’ option:

    :set numberwidth=3

This set’s the width for the line number to 3 digits, which is enough, if your buffer contains less than 999 lines. However, if your current buffer contains more lines than 999, the ‘numberwidth’ will be adjusted accordingly, so that the maximum line number will fit on the screen.

Comments (1)


Pepsh Pepshinsky

Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE


Speak Your Mind