瀏覽代碼

Force setting of filetype

In combination with certain plugins, the filetype wouldn't be set for
Startify, because a filetype was already set by another plugin in the
series of VimEnter autocmds.

Setting the filetype gets forced now.
Asa Jay 12 年之前
父節點
當前提交
f8c60d9fd3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      autoload/startify.vim

+ 1 - 1
autoload/startify.vim

@@ -48,7 +48,7 @@ function! startify#insane_in_the_membrane() abort
 
   setlocal noswapfile nobuflisted buftype=nofile bufhidden=wipe
   setlocal nonumber nocursorline nolist statusline=\ startify
-  setfiletype startify
+  set filetype=startify
 
   if v:version >= 703
     setlocal norelativenumber