Use relativenumber if available.
authorIain Patterson <me@iain.cx>
Thu, 17 Mar 2016 12:31:10 +0000 (12:31 +0000)
committerIain Patterson <me@iain.cx>
Thu, 17 Mar 2016 12:31:10 +0000 (12:31 +0000)
.vimrc

diff --git a/.vimrc b/.vimrc
index a72c2dc..9906303 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -386,6 +386,9 @@ endfun "}}}2
 fun! Number(resize) "{{{2
   call Iain_Vars()
   let &number = ! &number
+  if version >= 700
+    let &relativenumber = &number
+  endif
 
   " Ensure we keep track of any extra columns even if we aren't resizing.
   " This prevents confusion when number is set at startup.