From b6d303b047ac561317d2d99c6230cdeef7bdfca9 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Sun, 12 Feb 2017 18:55:17 -0500 Subject: [PATCH] Disable plugins that complain about missing dependencies when those dependencies aren't available --- vimrc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index d42d174..979fc01 100644 --- a/vimrc +++ b/vimrc @@ -36,7 +36,19 @@ runtime config/settings.vim "Init Plugin Loader: - if has('nvim')|let pathogen_disabled=['vim-fixkey', 'neocomplete.vim']|endif " disable incompatible plugins for neovim + let pathogen_disabled=[] + + " disable incompatible plugins + if has('nvim') + call add(pathogen_disabled, 'vim-fixkey') + call add(pathogen_disabled, 'neocomplete.vim') + endif + if !has('python') + call add(pathogen_disabled, 'MatchTagAlways') + endif + if !has('lua') + call add(pathogen_disabled, 'neocomplete.vim') + endif runtime bundle/vim-pathogen/autoload/pathogen.vim "Load Keymappings: