VundleVim / Vundle.vim

Vundle, the plug-in manager for Vim
http://github.com/VundleVim/Vundle.Vim
MIT License
23.92k stars 2.58k forks source link

Wrong filetype behaviour #136

Open cppkhartna opened 12 years ago

cppkhartna commented 12 years ago

How to reproduce:

  1. Open some file, which has syntax highlighting, e.g. .vimrc
  2. Run :tabnew
  3. Run :q

Now there is no syntax highlighting and .vimrc is plain white! To make it highlighted again, I have to run ':filetype detect' or ':syntax on', though when I run ':filetype' it says "filetype detection:ON plugin:ON indent:ON".

This happens to me only when I include Vundle configuration in .vimrc, like 'source ~/.vim/bundles.vim' or as advised in help.

Is there a workaround for this?

gmarik commented 12 years ago

Well, cannot reproduce the issue from what you provided

Need more details i guess.

cppkhartna commented 12 years ago

Oh, my fault - forgot to add one line:

  1. Open some file, which has syntax highlighting, e.g. .vimrc
  2. Run :tabnew
  3. Run :e, then press Esc
  4. Run :q

Do you see this effect now?

I do this sequence of actions quite often - trying to open new tab and then deciding not to do this. I believe that is somehow due to 'filetype off' option, but cannot see why.

cppkhartna commented 12 years ago

I've uploaded my sample .vimrc to github: https://github.com/cppkhartna/config/blob/master/.vimrc

Hope it helps.

gmarik commented 12 years ago

Tried reproducting, but didn't.

Also this step:

Run :e, then press Esc

doesn't make sense to me: why you do :e without filename?

Let me know if you can provide more accurate steps. Thanks

weynhamz commented 11 years ago

Might related to #176