-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathneobundle.vim
90 lines (71 loc) · 2.22 KB
/
neobundle.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
" Part of my modulized vimrc file.
" Last change:
" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" Filetype off.
filetype off
" Determine the path to neobundle.
let s:vimdir_path = fnamemodify(resolve(expand('<sfile>:p')), ':h')
let s:neobundle_path = s:vimdir_path . '/bundle/neobundle.vim'
" Download neobundle if it does not exists.
if !isdirectory(s:neobundle_path)
echom "Your plugins seem to be missing, installing them now. This may take a while, and you need to relaunch vim after this."
let s:first_run = 1
call delete(s:vimdir_path . '/.VimballRecord')
silent! execute '!git clone https://github.com/Shougo/neobundle.vim.git ' . s:neobundle_path
else
let s:first_run = 0
endif
" Load neobundle.
let &runtimepath = &runtimepath . ',' . s:neobundle_path
call neobundle#rc(s:vimdir_path . '/bundle')
NeoBundle 'Shougo/neobundle.vim'
" Vimproc.
NeoBundle 'Shougo/vimproc', {
\'build': {
\'windows': 'make -f make_msvc.mak',
\'unix': 'make -f make_unix.mak',
\},
\}
" Settings dependant on loaded files.
NeoBundle 'ciaranm/detectindent'
NeoBundle 'ciaranm/securemodelines'
" Easy commenting.
NeoBundle 'tpope/vim-commentary'
" Information lists.
NeoBundle 'sjl/gundo.vim'
NeoBundle 'Shougo/unite.vim'
" Visual clues.
NeoBundle 'nathanaelkane/vim-indent-guides'
NeoBundle 'kien/rainbow_parentheses.vim'
" Movement.
NeoBundle 'justinmk/vim-sneak'
" Editing.
NeoBundle 'tpope/vim-repeat'
NeoBundle 'tpope/vim-surround'
NeoBundle 'godlygeek/tabular'
NeoBundle 'mattn/emmet-vim'
NeoBundle 'AndrewRadev/splitjoin.vim'
" Snippets.
NeoBundle 'SirVer/ultisnips'
" Tab complete.
NeoBundle 'Valloric/YouCompleteMe', {
\'build' : {
\'unix' : './install.sh --clang-completer --omnisharp-completer',
\},
\}
" Syntax checks (lint, etc).
NeoBundle 'scrooloose/syntastic'
" Syntax highlighting.
NeoBundle 'beyondwords/vim-twig'
NeoBundle 'vim-scripts/nginx.vim'
" Colorscheme.
NeoBundle 'altercation/vim-colors-solarized'
" If this is the first run (that is, if we had to download neobundle), download
" all bundles.
if s:first_run
NeoBundleInstall
endif
" Turn filetype back on.
filetype plugin indent on