Mercurial > dotfiles.old
comparison vimrc @ 45:1e04e6fd6b9b
Fix issue with clang_complete
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 27 Apr 2014 23:23:24 +0200 |
parents | 4c3b25554bbb |
children | 64d8a8eb8705 |
comparison
equal
deleted
inserted
replaced
44:4253a2206527 | 45:1e04e6fd6b9b |
---|---|
284 " <TAB>: completion. | 284 " <TAB>: completion. |
285 inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" | 285 inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" |
286 " <C-h>, <BS>: close popup and delete backword char. | 286 " <C-h>, <BS>: close popup and delete backword char. |
287 inoremap <expr><C-h> neocomplete#smart_close_popup()."\<C-h>" | 287 inoremap <expr><C-h> neocomplete#smart_close_popup()."\<C-h>" |
288 | 288 |
289 if !exists('g:neocomplete#force_omni_input_patterns') | |
290 let g:neocomplete#force_omni_input_patterns = {} | |
291 endif | |
292 let g:neocomplete#force_overwrite_completefunc = 1 | |
293 let g:neocomplete#force_omni_input_patterns.c = | |
294 \ '[^.[:digit:] *\t]\%(\.\|->\)\w*' | |
295 let g:neocomplete#force_omni_input_patterns.cpp = | |
296 \ '[^.[:digit:] *\t]\%(\.\|->\)\w*\|\h\w*::\w*' | |
297 let g:neocomplete#force_omni_input_patterns.objc = | |
298 \ '[^.[:digit:] *\t]\%(\.\|->\)\w*' | |
299 let g:neocomplete#force_omni_input_patterns.objcpp = | |
300 \ '[^.[:digit:] *\t]\%(\.\|->\)\w*\|\h\w*::\w*' | |
301 let g:clang_complete_auto = 0 | |
302 let g:clang_auto_select = 0 | |
303 "let g:clang_use_library = 1 | |
289 let s:clang_library_path='/Library/Developer/CommandLineTools/usr/lib' | 304 let s:clang_library_path='/Library/Developer/CommandLineTools/usr/lib' |
290 if isdirectory(s:clang_library_path) | 305 if isdirectory(s:clang_library_path) |
291 let g:clang_library_path=s:clang_library_path | 306 let g:clang_library_path=s:clang_library_path |
292 endif | 307 endif |
293 let g:clang_complete_auto = 0 | |
294 let g:clang_auto_select = 0 | |
295 let g:clang_use_library = 1 | |
296 | 308 |
297 autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS | 309 autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS |
298 autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags | 310 autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags |
299 autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS | 311 autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS |
300 autocmd FileType python setlocal omnifunc=pythoncomplete#Complete | 312 autocmd FileType python setlocal omnifunc=pythoncomplete#Complete |