From 4b44bd7386dd35dd7b787c43f38951974b4f4b61 Mon Sep 17 00:00:00 2001 From: lhark Date: Wed, 1 Aug 2018 23:53:00 +0200 Subject: [PATCH] [vimrc] Only load vim-easytags if ctags is installed --- vimrc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/vimrc b/vimrc index c31ff43..d72cdc2 100644 --- a/vimrc +++ b/vimrc @@ -103,12 +103,14 @@ if has("unix") || has("mac") \ 'linter_errors': 'error' \ }, \} - "Needed for vim-easytags" - Plugin 'xolox/vim-misc' - Plugin 'xolox/vim-easytags' - let g:easytags_async=1 - "Needed for YouCompleteMe" - let g:easytags_opts=['--fields=+l'] + if executable('ctags') + "Needed for vim-easytags" + Plugin 'xolox/vim-misc' + Plugin 'xolox/vim-easytags' + let g:easytags_async=1 + "Needed for YouCompleteMe" + let g:easytags_opts=['--fields=+l'] + endif Plugin 'godlygeek/tabular' Plugin 'beyondmarc/opengl.vim' Plugin 'tikhomirov/vim-glsl'