From f86447e378d3a25ea8bcbf2dfb5c7cb6211a6c06 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 14 Sep 2016 10:05:04 +0100 Subject: [PATCH] Conditionally enable plugins on Windows --- vimrc | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/vimrc b/vimrc index 9bd3a83..af6d044 100644 --- a/vimrc +++ b/vimrc @@ -28,8 +28,10 @@ if !platform#is_windows() let g:ycm_error_symbol="-▸" let g:ycm_warning_symbol="-▸" endif -" ultisnips - snippet engine -Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' +if has('python') + " ultisnips - snippet engine + Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' +endif " vim-cmake-completion - completion & help Plug 'richq/vim-cmake-completion', {'for': ['cmake']} " vimomni - Completion for vimscript @@ -42,11 +44,13 @@ let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0 let g:syntastic_python_checkers = ['pylint'] -" format.vim - format with text objects -if isdirectory(expand('~/Sandbox/format')) - Plug '~/Sandbox/format' -else - Plug 'git@bitbucket.org:infektor/format.vim.git' +if has('python') + " format.vim - format with text objects + if isdirectory(expand('~/Sandbox/format')) + Plug '~/Sandbox/format' + else + Plug 'git@bitbucket.org:infektor/format.vim.git' + endif endif " vim-textobj-user - library for creating text objects @@ -85,8 +89,10 @@ Plug 'tpope/vim-speeddating' Plug 'tpope/vim-jdaddy' " fzf.vim - Fuzzy finder -Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all --no-update-rc'} -Plug 'junegunn/fzf.vim' +if !platform#is_windows() + Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all --no-update-rc'} + Plug 'junegunn/fzf.vim' +endif " vim-notes - easy note taking {{{ Plug 'xolox/vim-notes' | Plug 'xolox/vim-misc'