]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Use as little space as possible for numbers column.
authorSimon Ruderich <simon@ruderich.org>
Fri, 12 Mar 2010 03:04:08 +0000 (04:04 +0100)
committerSimon Ruderich <simon@ruderich.org>
Fri, 12 Mar 2010 03:04:08 +0000 (04:04 +0100)
vimrc

diff --git a/vimrc b/vimrc
index 72a19f770e2790ba84ca59844c638f739814392e..d8bd27c8471e480da246aa8d7693bb4089baedc5 100644 (file)
--- 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 <C-g>.
 set ruler