Conditionally enable plugins on Windows
This commit is contained in:
parent
f68769accf
commit
f86447e378
6
vimrc
6
vimrc
@ -28,8 +28,10 @@ if !platform#is_windows()
|
|||||||
let g:ycm_error_symbol="-▸"
|
let g:ycm_error_symbol="-▸"
|
||||||
let g:ycm_warning_symbol="-▸"
|
let g:ycm_warning_symbol="-▸"
|
||||||
endif
|
endif
|
||||||
|
if has('python')
|
||||||
" ultisnips - snippet engine
|
" ultisnips - snippet engine
|
||||||
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
|
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
|
||||||
|
endif
|
||||||
" vim-cmake-completion - completion & help
|
" vim-cmake-completion - completion & help
|
||||||
Plug 'richq/vim-cmake-completion', {'for': ['cmake']}
|
Plug 'richq/vim-cmake-completion', {'for': ['cmake']}
|
||||||
" vimomni - Completion for vimscript
|
" 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_check_on_wq = 0
|
||||||
let g:syntastic_python_checkers = ['pylint']
|
let g:syntastic_python_checkers = ['pylint']
|
||||||
|
|
||||||
|
if has('python')
|
||||||
" format.vim - format with text objects
|
" format.vim - format with text objects
|
||||||
if isdirectory(expand('~/Sandbox/format'))
|
if isdirectory(expand('~/Sandbox/format'))
|
||||||
Plug '~/Sandbox/format'
|
Plug '~/Sandbox/format'
|
||||||
else
|
else
|
||||||
Plug 'git@bitbucket.org:infektor/format.vim.git'
|
Plug 'git@bitbucket.org:infektor/format.vim.git'
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
" vim-textobj-user - library for creating text objects
|
" vim-textobj-user - library for creating text objects
|
||||||
Plug 'kana/vim-textobj-user'
|
Plug 'kana/vim-textobj-user'
|
||||||
@ -85,8 +89,10 @@ Plug 'tpope/vim-speeddating'
|
|||||||
Plug 'tpope/vim-jdaddy'
|
Plug 'tpope/vim-jdaddy'
|
||||||
|
|
||||||
" fzf.vim - Fuzzy finder
|
" fzf.vim - Fuzzy finder
|
||||||
|
if !platform#is_windows()
|
||||||
Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all --no-update-rc'}
|
Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all --no-update-rc'}
|
||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
|
endif
|
||||||
|
|
||||||
" vim-notes - easy note taking {{{
|
" vim-notes - easy note taking {{{
|
||||||
Plug 'xolox/vim-notes' | Plug 'xolox/vim-misc'
|
Plug 'xolox/vim-notes' | Plug 'xolox/vim-misc'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user