forked from euclio/vimrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundles.vim
90 lines (72 loc) · 2.67 KB
/
bundles.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
" =============================================================================
" Neobundle Setup
" =============================================================================
"
" Install neobundle if it doesn't exist
let new_neobundle_install=0
let neobundle_readme=expand('$VIMHOME/bundle/neobundle.vim/README.md')
if !filereadable(neobundle_readme)
let $NEOBUNDLE=expand('$VIMHOME/bundle/neobundle.vim')
echom 'NeoBundle not found. Installing...'
echom ''
call mkdir($VIMHOME . '/bundle', 'p')
silent exe '!git clone https://github.com/Shougo/neobundle.vim' $NEOBUNDLE
let new_vundle_install=1
endif
" Add neobundle to runtime path
if has('vim_starting')
set rtp+=$VIMHOME/bundle/neobundle.vim
endif
call neobundle#rc(expand('$VIMHOME/bundle/'))
" =============================================================================
" Bundles
" =============================================================================
"
" Allow neobundle to manage itself
NeoBundleFetch 'Shougo/neobundle.vim'
" Syntax checking on save
NeoBundle 'scrooloose/syntastic'
" Git wrapper
NeoBundle 'tpope/vim-fugitive'
" Statusline improvements
NeoBundle 'bling/vim-airline'
let g:airline_left_sep = ''
let g:airline_right_sep = ''
let g:airline_branch_prefix = '⎇ ' " Symbol displayed next to Git branch
let g:airline_theme='badwolf'
" Filetype plugin for Scala
NeoBundle 'derekwyatt/vim-scala'
" View highlight groups under cursor
NeoBundle 'gerw/vim-HiLinkTrace'
" Filetree viewer
NeoBundle 'scrooloose/nerdtree'
map <C-n> :NERDTreeToggle<CR>
" Close vim if NERDTree is the only window
autocmd bufenter *
\ if (winnr("$") == 1 &&
\ exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
" My personal colorscheme
NeoBundle 'euclio/vim-nocturne'
" Allow GUI colorschemes in 256-color or 88-color terminals
NeoBundle 'CSApprox'
let g:CSApprox_verbose_level=0 " Disable warnings for <88 colors
" Autocompletion for Python and C-like languages
NeoBundle 'Valloric/YouCompleteMe', {
\ 'build': {
\ 'unix': './install.sh --clang-completer',
\ },
\ }
let g:EclimCompletionMethod='omnifunc' " Let YCM use Eclipse autocomplete
" Automatic completion of parenthesis, brackets, etc.
NeoBundle 'Raimondi/delimitMate'
" LaTeX compilation commands and autocomplete
NeoBundle 'LaTeX-Box-Team/LaTeX-Box'
let g:LatexBox_latexmk_preview_continuously=1 " Auto-compile TeX on save
" Install the bundles if Vundle was installed for the first time
if new_neobundle_install
echom 'Installing all bundles...'
NeoBundleInstall!
echom 'If there are errors, they can be safely ignored.'
endif
" Check installation
NeoBundleCheck