When opening multiple files at once like vim file1.py file2.py, only file1.py will have syntax highlighting enabled. For file2.py, no :set syntax is available and I have to set it manually.
I install files with Vundle, so here's my Plugin list, maybe this helps:
Plugin 'flazz/vim-colorschemes'
Plugin 'scrooloose/syntastic'
Plugin 'Valloric/YouCompleteMe'
Plugin 'evanmiller/nginx-vim-syntax'
Plugin 'othree/html5.vim'
Plugin 'othree/javascript-libraries-syntax.vim'
Plugin 'pangloss/vim-javascript'
Plugin 'rdolgushin/gitignore.vim'
Plugin 'gregsexton/MatchTag'
Plugin 'justinmk/vim-syntax-extra'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'bogado/file-line'
When opening multiple files at once like
vim file1.py file2.py, onlyfile1.pywill have syntax highlighting enabled. Forfile2.py, no:set syntaxis available and I have to set it manually.I install files with Vundle, so here's my Plugin list, maybe this helps: