浏览代码

Silence options

Marco Hinz 9 年之前
父节点
当前提交
26cff271ef
共有 1 个文件被更改,包括 3 次插入7 次删除
  1. 3 7
      autoload/startify.vim

+ 3 - 7
autoload/startify.vim

@@ -52,23 +52,19 @@ function! startify#insane_in_the_membrane() abort
     endfor
   endif
 
-  setlocal
+  silent! setlocal
         \ bufhidden=wipe
         \ nobuflisted
         \ nocursorcolumn
         \ nocursorline
         \ nolist
         \ nonumber
+        \ norelativenumber
+        \ nospell
         \ noswapfile
   if empty(&statusline)
     setlocal statusline=\ startify
   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.
   if exists('g:startify_custom_header')