From f2e01d7e513067ddb57c75f6e38cdcf434946cf8 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 22 Oct 2018 00:02:58 +0200 Subject: Major refactoring for version 2.0 vim-plug has been removed and replaced with Vims internal bundle mechanism. But I already noticed, that there is also GLVM now and started trying that as well. --- vimrc | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) mode change 120000 => 100644 vimrc (limited to 'vimrc') diff --git a/vimrc b/vimrc deleted file mode 120000 index 9a5cefb..0000000 --- a/vimrc +++ /dev/null @@ -1 +0,0 @@ -vimrc-full \ No newline at end of file diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..1b9f20b --- /dev/null +++ b/vimrc @@ -0,0 +1,49 @@ +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 + + + -- cgit v1.2.3