set nu col width

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

set nu col width

luke-44
Hi.

I'd like to set the width of the nu column in vim.
How do I do that?

Thanks.
Kind regards.
Luke.
--
............._..
.|  .| |.|/.|_ .
.|__.|_|.|\.|_ .
:61 421 276 282:
Reply | Threaded
Open this post in threaded view
|

Re: set nu col width

A.J.Mechelynck
[hidden email] wrote:
> Hi.
>
> I'd like to set the width of the nu column in vim.
> How do I do that?
>
> Thanks.
> Kind regards.
> Luke.

In Vim 7 (but not in Vim 6 or earlier) there is a 'numberwidth' option.
If the file is very large you'll always get at least enough width to
display the number of the last line, followed by a space.


Best regards,
Tony.