I'm working on different projects and I want to select what plugins to enable (or disable) for every project. I'm using Pathogen to manage my plugins.
Plugins list:
.vim \
|-bundle \
|-vim-markdown
|-latexsuite
|-dirdo
|-localvimrc
|-nerdtree
|-autostart
|-doc
I've a main .vimrc
which by default enables all plugins and a local lvimrc
in every project main directory enabled by Localvimrc, in which I add some plugins to the disabled plugins list.
.vimrc
" Enables vim-pathogen and disables nearly all plugins
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
let g:pathogen_disabled = []
" This makes vim invoke Latex-Suite when you open a tex file.
filetype plugin on
latex-project's lvimrc
let g:pathogen_disabled = []
call add(g:pathogen_disabled, 'vim-markdown')
blog project's lvimrc
let g:pathogen_disabled = []
call add(g:pathogen_disabled, 'latexsuite')
The problem
Everything works fine except vim-markdown which is not loaded when I open my blog's html/markdown files (I've already added *.html extension in ftdetect/markdown.vim
). Moreover, vim-markdown
is not listed in the output of :scriptnames
when editing my blog files.
Any hint?