Browse Source

only set nornu if Vim is >= 7.3

Marco Hinz 12 năm trước cách đây
mục cha
commit
84acc480b3
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      plugin/startify.vim

+ 4 - 1
plugin/startify.vim

@@ -26,7 +26,10 @@ command! -nargs=? -bar -complete=customlist,startify#get_session_names SLoad cal
 " Function: s:start {{{1
 function! s:start() abort
   setfiletype startify
-  setlocal nonumber norelativenumber nobuflisted buftype=nofile
+  setlocal nonumber nobuflisted buftype=nofile
+  if v:version >= 703
+    setlocal norelativenumber
+  endif
 
   call append('$', ['   startify>', '', '   [e]  <empty buffer>'])
   let cnt = 0