From: Simon Ruderich Date: Fri, 12 Mar 2010 03:04:08 +0000 (+0100) Subject: vimrc: Use as little space as possible for numbers column. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;ds=inline;h=da7ec5c2e94c93bc2965e4496824a3c2c687527b;p=config%2Fdotfiles.git vimrc: Use as little space as possible for numbers column. --- diff --git a/vimrc b/vimrc index 72a19f7..d8bd27c 100644 --- a/vimrc +++ b/vimrc @@ -111,6 +111,11 @@ set background=dark " Display line numbers. set number +" But use as little space as necessary for the numbers column. Thanks to James +" Vega (http://git.jamessan.com/?p=etc/vim.git;a=summary). +if v:version >= 700 + set numberwidth=1 +endif " Display the ruler with current line/file position. If 'statusline' is used " then this only affects . set ruler