Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
f8c60d9fd3
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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