2013-02-01 35 views
20

在vundle的主页,它记录的,它需要的文件类型在.vimrc里被关闭:为什么vundle需要的文件类型关闭

filetype off     " required! 
set rtp+=~/.vim/bundle/vundle/ 
call vundle#rc() 

我不明白为什么!由于在分别安装相关插件(vim-coffee-script和vim-less)后,最近编辑.coffee和.less文件遇到问题。 我的问题vim-coffee-script

+4

这似乎是[解决方法](https://github.com/gmarik/vundle/issues/176)。我建议你在那边问问。 – romainl

+1

我已经在@romainl提到的github问题上发布了一个更新。 –

+1

vundle初始化后,我在vimrc中启用了它(看上去没问题)。 – mhitza

回答

25

当vundle的东西结束时,为什么不只是filetypeon?

filetype off     " required! 
set rtp+=~/.vim/bundle/vundle/ 
call vundle#rc() 
... 
Vundle 'blabla' 
Vundle 'blabla2' 

filetype plugin indent on 
2

我想解决这个问题的原因。

大多数这个答案是从以下github上线

https://github.com/VundleVim/Vundle.vim/issues/176

这是Vim的功能。
Vim为运行时路径中的文件类型插件创建缓存。所以如果vundle更改runtimepath,它必须在调用之前重置。

也有人说这个问题只在7.3.430之前有过。

由于@Maxim金已经回答了,它能够更好地打开它相关的一切后Vundle

set nocompatible 
filetype off 
set rtp+=~/.vim/bundle/Vundle.vim 
call vundle#begin() 

" Let vundle manage itself: 
Plugin 'VundleVim/Vundle.vim' 
" Syntax checking plugin 
Plugin 'scrooloose/syntastic' 

call vundle#end() 

filetype plugin indent on " Filetype auto-detection 
syntax on " Syntax highlighting 
相关问题