From 1dd345c56db1d11e1c1c7838587b03df7cbd5733 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Thu, 3 Mar 2011 12:18:04 +1300 Subject: [PATCH] only set relativenumber for vim >= 7.3 --- plugin/NERD_tree.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index e490ba8..5612e81 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -2664,7 +2664,9 @@ function! s:initNerdTreeInPlace(dir) setlocal nu else setlocal nonu - setlocal nornu + if v:version >= 703 + setlocal nornu + endif endif iabc @@ -2901,7 +2903,9 @@ function! s:createTreeWin() setlocal nu else setlocal nonu - setlocal nornu + if v:version >= 703 + setlocal nornu + endif endif iabc