Conditionally enable plugins on Windows

This commit is contained in:
Kenneth Benzie 2016-09-14 10:05:04 +01:00
parent f68769accf
commit f86447e378

6
vimrc
View File

@ -28,8 +28,10 @@ if !platform#is_windows()
let g:ycm_error_symbol="-▸"
let g:ycm_warning_symbol="-▸"
endif
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,12 +44,14 @@ let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_python_checkers = ['pylint']
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
Plug 'kana/vim-textobj-user'
@ -85,8 +89,10 @@ Plug 'tpope/vim-speeddating'
Plug 'tpope/vim-jdaddy'
" fzf.vim - Fuzzy finder
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'