Shougo / dein.vim

:zap: Dark powered Vim/Neovim plugin manager
MIT License
3.43k stars 198 forks source link

dein execute `set filetype=` #304

Closed zgpio closed 6 years ago

zgpio commented 6 years ago

Warning: I will close the bug issue without the minimal init.vim and the reproduce ways.

Problems summary

dein execute set filetype=

Expected

Environment Information (Required!)

Provide a minimal .vimrc with less than 50 lines (Required!)

if &compatible
  set nocompatible
endif
set rtp^=~/.cache/dein/repos/github.com/Shougo/dein.vim

let s:path = expand('~/.cache/dein')
if dein#load_state(s:path)
  call dein#begin(s:path)

  call dein#add('tpope/vim-fugitive', {'on_event': 'BufRead'})
  call dein#end()
  call dein#save_state()
endif

filetype plugin indent on
syntax enable

The reproduce ways from Vim starting (Required!)

  1. use my min vimrc and install vim-fugitive
  2. start vim and :e foo.vim (note: foo.vim is a exist file)
  3. run set filetype?, you will find filetype=
  4. check :verbose set filetype, you will find filetype last changed in .../dein/autoload.vim

Screen shot (if possible)

default

zgpio commented 6 years ago

Q: Why does the command setf vim in vim81/filetype.vim not work after dein set filetype=?

Shougo commented 6 years ago

I don't know. It seems Vim's feature.