Преглед изворни кода

only set nornu if Vim is >= 7.3

Marco Hinz пре 12 година
родитељ
комит
84acc480b3
1 измењених фајлова са 4 додато и 1 уклоњено
  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