exec ':source '.fnamemodify($MYVIMRC,':h').'/vimrc-common' set packpath+=pack/vim set ttymouse=xterm2 set ttyscroll=100 | " improves speed for terminal vim, incompatible with nvim set ttyfast | " improves speed for terminal vim (incompatible with nvim) set nottybuiltin | " use external termcaps set restorescreen | " restores the console after exiting vim (intentionally not in nvim) autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib") " scripts from the default vim installation, which do not get loaded by default, but are useful. if filereadable($VIMRUNTIME.'/macros/editexisting.vim') packadd! editexisting endif " load default plugin 'matchit' to allow % to jump between tags if filereadable($VIMRUNTIME.'/macros/matchit.vim') packadd! matchit endif "======================================================================================================================= augroup YOUCOMPLETEME let g:ycm_error_symbol = '✖' " insert this as an error symbol in the gutter bar/sign column let g:ycm_warning_symbol = '➔' " insert this as a warning symbol in the gutter bar/sign coloumn let g:ycm_autoclose_preview_window_after_insertion = 0 let g:ycm_auto_trigger = 1 let g:ycm_collect_identifiers_from_tags_files = 1 " Let YCM read tags from Ctags file let g:ycm_confirm_extra_conf = 0 " security is overrated ;) let g:ycm_always_populate_location_list = 0 " we can manually run :YcmDiags to do that let g:ycm_key_list_previous_completion = ['Up'] let g:ycm_key_list_select_completion = ['Down'] let g:ycm_semantic_triggers = \ { \ 'c': [ 're!\w{2}' ] \ } " per language configurations packadd YouCompleteMe augroup END