Marco Hinz 9 жил өмнө
parent
commit
26cff271ef

+ 3 - 7
autoload/startify.vim

@@ -52,23 +52,19 @@ function! startify#insane_in_the_membrane() abort
     endfor
     endfor
   endif
   endif
 
 
-  setlocal
+  silent! setlocal
         \ bufhidden=wipe
         \ bufhidden=wipe
         \ nobuflisted
         \ nobuflisted
         \ nocursorcolumn
         \ nocursorcolumn
         \ nocursorline
         \ nocursorline
         \ nolist
         \ nolist
         \ nonumber
         \ nonumber
+        \ norelativenumber
+        \ nospell
         \ noswapfile
         \ noswapfile
   if empty(&statusline)
   if empty(&statusline)
     setlocal statusline=\ startify
     setlocal statusline=\ startify
   endif
   endif
-  if v:version >= 700
-    setlocal nospell
-  endif
-  if v:version >= 703
-    setlocal norelativenumber
-  endif
 
 
   " Must be global so that it can be read by syntax/startify.vim.
   " Must be global so that it can be read by syntax/startify.vim.
   if exists('g:startify_custom_header')
   if exists('g:startify_custom_header')