mirror of
https://github.com/vbrandl/dotfiles
synced 2024-11-23 00:13:49 +01:00
Update vim config
This commit is contained in:
parent
3be00be776
commit
e76ae88dfb
@ -36,6 +36,7 @@ Plug 'neomake/neomake' " async linting and making
|
|||||||
Plug 'benmills/vimux', Cond(!empty($TMUX)) " tmux support
|
Plug 'benmills/vimux', Cond(!empty($TMUX)) " tmux support
|
||||||
Plug 'sickill/vim-pasta' " context aware pasting
|
Plug 'sickill/vim-pasta' " context aware pasting
|
||||||
Plug 'junegunn/goyo.vim' " distraction free writing
|
Plug 'junegunn/goyo.vim' " distraction free writing
|
||||||
|
Plug 'bronson/vim-trailing-whitespace' " highlight unwanted whitespaces
|
||||||
|
|
||||||
" Python
|
" Python
|
||||||
Plug 'davidhalter/jedi-vim', { 'for': 'python' } " python autocomplete
|
Plug 'davidhalter/jedi-vim', { 'for': 'python' } " python autocomplete
|
||||||
@ -48,6 +49,16 @@ endif
|
|||||||
|
|
||||||
Plug 'sheerun/vim-polyglot' " syntax support for many languages
|
Plug 'sheerun/vim-polyglot' " syntax support for many languages
|
||||||
|
|
||||||
|
function! BuildYCM(info)
|
||||||
|
if a:info.status = 'installed' || a:info.force
|
||||||
|
!./install.py --clang-completer --racer-completer
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
Plug 'Valloric/YouCompleteMe', { 'do': function('BuildYCM') }
|
||||||
|
|
||||||
|
" Plug 'artur-shaik/vim-javacomplete2'
|
||||||
|
|
||||||
Plug 'lervag/vimtex'
|
Plug 'lervag/vimtex'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
@ -42,7 +42,9 @@ if has("autocmd")
|
|||||||
au!
|
au!
|
||||||
|
|
||||||
" For all text files set 'textwidth' to 78 characters.
|
" For all text files set 'textwidth' to 78 characters.
|
||||||
autocmd FileType text setlocal textwidth=78
|
autocmd FileType text setlocal textwidth=120
|
||||||
|
|
||||||
|
autocmd FileType tex setlocal foldtext<
|
||||||
|
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
@ -76,7 +78,8 @@ set nolazyredraw
|
|||||||
set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
set ruler " always show curser position
|
set ruler " always show curser position
|
||||||
set history=1000 " keep 1000 lines of history
|
set history=1000 " keep 1000 lines of history
|
||||||
" set textwidth=120
|
set textwidth=120
|
||||||
|
set colorcolumn=+1
|
||||||
set number " display absolute number of current line
|
set number " display absolute number of current line
|
||||||
set relativenumber " display relative line numbers
|
set relativenumber " display relative line numbers
|
||||||
set cursorline " highlight current line
|
set cursorline " highlight current line
|
||||||
@ -382,4 +385,23 @@ let g:notes_directories = ['~/Dokumente/Notes']
|
|||||||
|
|
||||||
let g:polyglot_disabled = ['latex'] " disable latex in polyglot to use vimtex
|
let g:polyglot_disabled = ['latex'] " disable latex in polyglot to use vimtex
|
||||||
|
|
||||||
|
" you complete me
|
||||||
|
let g:ycm_rust_src_path = '/usr/src/rust/src'
|
||||||
|
let g:ycm_python_binary_path = 'python'
|
||||||
|
|
||||||
|
" " javacomplete2
|
||||||
|
" autocmd FileType java setlocal omnifunc=javacomplete#Complete
|
||||||
|
" " enable smart (trying to guess import option) inserting class imports with F4
|
||||||
|
" nmap <F4> <Plug>(JavaComplete-Imports-AddSmart)
|
||||||
|
" imap <F4> <Plug>(JavaComplete-Imports-AddSmart)
|
||||||
|
" " enable smart (trying to guess import option) inserting class imports with F4
|
||||||
|
" nmap <F5> <Plug>(JavaComplete-Imports-Add)
|
||||||
|
" imap <F5> <Plug>(JavaComplete-Imports-Add)
|
||||||
|
" " add all missing imports with F6
|
||||||
|
" nmap <F6> <Plug>(JavaComplete-Imports-AddMissing)
|
||||||
|
" imap <F6> <Plug>(JavaComplete-Imports-AddMissing)
|
||||||
|
" " add all missing imports with F6
|
||||||
|
" nmap <F7> <Plug>(JavaComplete-Imports-RemoveUnused)
|
||||||
|
" imap <F7> <Plug>(JavaComplete-Imports-RemoveUnused)
|
||||||
|
|
||||||
" vim: set filetype=vim ts=8 sw=2 tw=120 noet :
|
" vim: set filetype=vim ts=8 sw=2 tw=120 noet :
|
||||||
|
Loading…
Reference in New Issue
Block a user