소스 검색

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