|
|
@ -88,6 +88,7 @@ Plug 'nbouscal/vim-stylish-haskell', { 'for': 'haskell' } |
|
|
|
" C/C++ |
|
|
|
Plug 'Rip-Rip/clang_complete', { 'for': ['c', 'cpp'], 'do': 'make install' } |
|
|
|
let g:clang_library_path='/usr/lib/llvm-4.0/lib/libclang-4.0.so.1' |
|
|
|
Plug 'rhysd/vim-clang-format', { 'for' : ['c', 'cpp', 'java'] } |
|
|
|
|
|
|
|
" PHP |
|
|
|
"Plug 'shawncplus/phpcomplete.vim', { 'for': 'php', 'do': 'curl -Ss http://vim-php.com/phpctags/install/phpctags.phar > ~/bin/phpctags && chmod +x ~/bin/phpctags' } |
|
|
@ -216,7 +217,7 @@ autocmd FileType java setlocal omnifunc=javacomplete#Complete |
|
|
|
" Python-mode config |
|
|
|
let g:pymode_lint_on_write = 0 |
|
|
|
|
|
|
|
" Vimtex |
|
|
|
" Vimtex{{{ |
|
|
|
if !exists('g:neocomplete#sources#omni#input_patterns') |
|
|
|
let g:neocomplete#sources#omni#input_patterns = {} |
|
|
|
endif |
|
|
@ -228,6 +229,11 @@ let g:neocomplete#sources#omni#input_patterns.tex = |
|
|
|
\ . ')' |
|
|
|
"}}} |
|
|
|
|
|
|
|
" C/C++ |
|
|
|
autocmd FileType c,cpp,objc nnoremap <buffer><Leader>f :<C-u>ClangFormat<CR> |
|
|
|
autocmd FileType c,cpp,objc vnoremap <buffer><Leader>f :ClangFormat<CR> |
|
|
|
"}}} |
|
|
|
|
|
|
|
" Completion {{{ |
|
|
|
if !has("nvim") |
|
|
|
"Note: This option must be set in .vimrc(_vimrc). NOT IN .gvimrc(_gvimrc)! |
|
|
|