Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why vundle requires filetype off

On vundle's homepage, it documented that it requires filetype to be off in .vimrc:

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

I don't understand why. Since I am encountering problems with editing .coffee and .less files recently after separately-installed related plugins for them (vim-coffee-script and vim-less). My issue on vim-coffee-script

like image 601
Wayne Ye Avatar asked Feb 01 '13 09:02

Wayne Ye


People also ask

What is filetype off in vim?

But if you do switch off filetype detection, the indent files will not be loaded either. This actually loads the file "indoff.vim" in 'runtimepath'. This disables auto-indenting for files you will open. It will keep working in already opened files.

Can I use Vundle with vim plug?

Vim's functionality can be extended to different levels using plugins, and these can be controlled by Vundle. This is an extremely useful plugin for manage Vim plugins. Vundle creates a separate directory tree for each plugin we install and stores additional configuration files in the corresponding plugin directory.


1 Answers

You can set filetype on after the last Vundle command:

 filetype off                   " required!  set rtp+=~/.vim/bundle/vundle/  call vundle#rc()  ...  Vundle 'blabla'  Vundle 'blabla2'   filetype plugin indent on   " re-enable filetype 
like image 66
Maxim Kim Avatar answered Oct 11 '22 23:10

Maxim Kim