From cfe2fb3b392b34e073360cc91b00ace56e048341 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Thu, 17 Mar 2016 12:31:10 +0000 Subject: [PATCH] Use relativenumber if available. --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vimrc b/.vimrc index a72c2dc..9906303 100644 --- 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. -- 2.20.1