ftplugin

Vim 7.3 on Ubuntu 12.10 doesn't have 'ftplugin' directory anywhere

霸气de小男生 提交于 2020-01-03 06:03:27
问题 Vim 7.3 on Ubuntu 12.10 I recently installed vim from the Ubuntu software center. So far, I've installed the following vim plugins: NERDTree, rails and ack. I'm taking a course on python and another one on Ruby on Rails. I was surprised that vim didn't recognize the languages as far as indenting goes. Checking various questions and answers on this forum, as well as checking vim help, I see that there should be a directory named 'ftplugin' in the $VIMRUNTIME directory. My $VIMRUNTIME is just

Best way to organize filetype settings in .vim and .vimrc?

半世苍凉 提交于 2019-12-18 09:55:20
问题 I'm going through my vim dotfiles to tidy them up. I've noticed that through time I've added various filetype specific settings in various inconsistent ways. Let's suppose I'm customizing for Python: au BufRead,BufNewFile *.py (do something) . I don't like this because some Python files might not have the .py termination. au FileType python (do something) . This seems a better option because it doesn't depend on the file having the .py termination. The drawback is that Vim doesn't know about

Pathogen ignoring ftplugin scripts

扶醉桌前 提交于 2019-12-11 01:14:46
问题 I'm trying to use Pathogen to manage Vim plugins. I had a couple of scripts I made in .vim/ftplugins . I installed Pathogen but now none of the scripts in ftplugins runs. I tried adding a directory inside .vim/bundle with the scripts but it didn't work (it was .vim/bundle/local/ftplugin/python.vim ) Any idea how can I make Pathogen load the scripts in ftplugin directory? First lines of my .vimrc: set nocompatible syntax on filetype plugin indent on "execute pathogen#infect() Only works with