确保您在vimrc中初始化Vundle和您的软件包之前您的其余配置。因此,例如,您应该有:
" =======================================================================
" Vundle setup and initialization. This needs to be done before any
" configuration so all plugins are loaded.
set nocompatible " required for Vundle
filetype off " required for Vundle, enabled later.
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
" Powerline
Bundle 'Lokaltog/vim-powerline'
...
...其中Powerline仅仅是一个示例包。然后让你的配置休息...
" =======================================================================
" Actual vim configuration goes here.
" =======================================================================
syntax on "lots of syntax highlighting
set nocompatible "be iMproved
colorscheme mustang
filetype plugin indent on
...
希望帮助...
的哪个工作插件安装新的后缀文件类型映射?我仍然不相信'filetype on'调用是按照Bundle定义的正确顺序发生的。 (即在“Bundle”调用之后) – kotarak