@@ -20,10 +20,20 @@ endif
20
20
" Required:
21
21
call neobundle#begin (expand (' ~/.vim/bundle/' ))
22
22
23
+ let g: neobundle #install_process_timeout = 1500
24
+
23
25
" Let NeoBundle manage NeoBundle
24
26
" Required:
25
27
NeoBundleFetch ' Shougo/neobundle.vim'
26
28
29
+ " NeoBundle 'Valloric/YouCompleteMe', {
30
+ " \ 'build' : {
31
+ " \ 'mac' : './install.sh --clang-completer --system-libclang --omnisharp-completer',
32
+ " \ 'unix' : './install.sh --clang-completer --system-libclang --omnisharp-completer --gocode-completer',
33
+ " \ 'windows' : './install.sh --clang-completer --system-libclang --omnisharp-completer',
34
+ " \ 'cygwin' : './install.sh --clang-completer --system-libclang --omnisharp-completer'
35
+ " \ }
36
+ " \ }
27
37
28
38
NeoBundle ' Shougo/unite.vim'
29
39
NeoBundle ' Shougo/neomru.vim'
@@ -189,6 +199,7 @@ NeoBundle 'godlygeek/tabular'
189
199
NeoBundle ' plasticboy/vim-markdown'
190
200
NeoBundle ' ashisha/image.vim'
191
201
NeoBundle ' chrisbra/vim-diff-enhanced'
202
+ NeoBundle ' gmarik/Vundle.vim'
192
203
193
204
" My Bundles here:
194
205
" Refer to |:NeoBundle-examples|.
@@ -209,19 +220,28 @@ NeoBundleCheck
209
220
" }}}
210
221
211
222
212
- " ------------------------------------------------------------------------------
213
- " for Vundle {{{
214
- " set nocompatible " be iMproved, required
215
- " filetype off " required
223
+ " Vundle.vim {{{
224
+ set nocompatible " be iMproved, required
225
+ filetype off " required
226
+
227
+ " Setup RTP:
228
+ let s: vimfiles = " "
229
+ if has (" win32" ) || has (" win64" )
230
+ let s: vimfiles = " $VIM/vimfiles/"
231
+ else
232
+ let s: vimfiles = " ~/.vim/"
233
+ endif
234
+
216
235
217
236
" set the runtime path to include Vundle and initialize
237
+ let &runtimepath .= ' ,' . expand (s: vimfiles . " bundle/Vundle.vim/" )
218
238
" set rtp+=~/.vim/bundle/Vundle.vim
219
239
" call vundle#begin()
220
240
" alternatively, pass a path where Vundle should install plugins
221
- " call vundle#begin('~/some/path/here' )
241
+ call vundle#begin (expand ( s: vimfiles . " bundle/ " ) )
222
242
223
243
" let Vundle manage Vundle, required
224
- " Plugin 'gmarik/Vundle.vim'
244
+ Plugin ' gmarik/Vundle.vim'
225
245
226
246
" The following are examples of different formats supported.
227
247
" Keep Plugin commands between vundle#begin/end.
@@ -239,22 +259,28 @@ NeoBundleCheck
239
259
" Avoid a name conflict with L9
240
260
" Plugin 'user/L9', {'name': 'newL9'}
241
261
262
+ Plugin ' Valloric/YouCompleteMe'
263
+
264
+
265
+
266
+
267
+
242
268
" All of your Plugins must be added before the following line
243
- " call vundle#end() " required
244
- " filetype plugin indent on " required
269
+ call vundle#end () " required
270
+ filetype plugin indent on " required
245
271
" To ignore plugin indent changes, instead use:
246
272
" filetype plugin on
247
273
"
248
274
" Brief help
249
- " :PluginList - list configured plugins
250
- " :PluginInstall(!) - install ( update) plugins
251
- " :PluginSearch(!) foo - search (or refresh cache first) for foo
252
- " :PluginClean(!) - confirm (or auto-approve) removal of unused plugins
275
+ " :PluginList - lists configured plugins
276
+ " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
277
+ " :PluginSearch foo - searches for foo; append `!` to refresh local cache
278
+ " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
253
279
"
254
280
" see :h vundle for more details or wiki for FAQ
255
281
" Put your non-Plugin stuff after this line
256
- " }}}
257
- " --------------------------------------------------------------------------------
282
+ " }}} end Vundle.vim
283
+
258
284
259
285
260
286
" Setting colorscheme
@@ -1695,3 +1721,11 @@ nnoremap sf :CtrlPF<Cr>
1695
1721
" }}}
1696
1722
1697
1723
nnoremap va :colo adrian<CR>
1724
+
1725
+ " for YouCompleteMe {{{
1726
+ let g: ycm_global_ycm_extra_conf = ' ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
1727
+ let g: ycm_collect_identifiers_from_tags_files = 1
1728
+ let g: ycm_seed_identifiers_with_syntax = 1
1729
+ let g: ycm_confirm_extra_conf = 0
1730
+ " }}} end YouCompleteMe
1731
+
0 commit comments