Explorar o código

only set nornu if Vim is >= 7.3

Marco Hinz %!s(int64=12) %!d(string=hai) anos
pai
achega
84acc480b3
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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