|
|
@ -3,8 +3,14 @@ filetype off " required |
|
|
|
|
|
|
|
" Section Plugins {{{ |
|
|
|
" Load vim-plug |
|
|
|
if empty(glob("~/.vim/autoload/plug.vim")) |
|
|
|
execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/master/plug.vim' |
|
|
|
if has("nvim") |
|
|
|
if empty(glob("~/.config/nvim/autoload/plug.vim")) |
|
|
|
execute '!curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' |
|
|
|
endif |
|
|
|
else |
|
|
|
if empty(glob("~/.vim/autoload/plug.vim")) |
|
|
|
execute '!curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.github.com/junegunn/vim-plug/master/plug.vim' |
|
|
|
endif |
|
|
|
endif |
|
|
|
call plug#begin() |
|
|
|
" alternatively, pass a path where Vundle should install plugins |
|
|
@ -30,7 +36,11 @@ Plug 'bling/vim-airline' |
|
|
|
Plug 'tpope/vim-ragtag' |
|
|
|
Plug 'tpope/vim-surround' " better handling of surrounding markers |
|
|
|
Plug 'tpope/vim-repeat' " repeat last command with . |
|
|
|
Plug 'vim-syntastic/syntastic' " automatic linters |
|
|
|
if has("nvim") |
|
|
|
Plug 'w0rp/ale' " asynchronous linting engine |
|
|
|
else |
|
|
|
Plug 'vim-syntastic/syntastic' " automatic linters |
|
|
|
endif |
|
|
|
Plug 'altercation/vim-colors-solarized' " solarized theme |
|
|
|
Plug 'godlygeek/tabular' " Align text on symbols |
|
|
|
Plug 'ludovicchabant/vim-gutentags', { 'for': ['php', 'c', 'cpp'] } |
|
|
@ -182,15 +192,22 @@ let NERDTreeShowHidden=1 |
|
|
|
|
|
|
|
let g:airline_powerline_fonts = 1 |
|
|
|
|
|
|
|
" Syntastic |
|
|
|
let g:syntastic_always_populate_loc_list = 1 |
|
|
|
let g:syntastic_auto_loc_list = 1 |
|
|
|
let g:syntastic_check_on_open = 1 |
|
|
|
let g:syntastic_check_on_wq = 0 |
|
|
|
let g:syntastic_aggregate_errors = 1 |
|
|
|
set statusline+=%#warningmsg# |
|
|
|
set statusline+=%{SyntasticStatuslineFlag()} |
|
|
|
set statusline+=%* |
|
|
|
" Syntastic{{{ |
|
|
|
if !has("nvim") |
|
|
|
let g:syntastic_always_populate_loc_list = 1 |
|
|
|
let g:syntastic_auto_loc_list = 1 |
|
|
|
let g:syntastic_check_on_open = 1 |
|
|
|
let g:syntastic_check_on_wq = 0 |
|
|
|
let g:syntastic_aggregate_errors = 1 |
|
|
|
set statusline+=%#warningmsg# |
|
|
|
set statusline+=%{SyntasticStatuslineFlag()} |
|
|
|
set statusline+=%* |
|
|
|
endif |
|
|
|
"}}} |
|
|
|
|
|
|
|
" ALE {{{ |
|
|
|
let g:airline#extensions#ale#enabled = 1 |
|
|
|
"}}} |
|
|
|
|
|
|
|
let vim_tags_ctags_binary='~/bin/phpctags'" |
|
|
|
|
|
|
|