diff options
Diffstat (limited to 'vimrc')
-rw-r--r--[l---------] | vimrc | 50 |
1 files changed, 49 insertions, 1 deletions
@@ -1 +1,49 @@ | |||
1 | vimrc-full \ No newline at end of file | 1 | exec ':source '.fnamemodify($MYVIMRC,':h').'/vimrc-common' |
2 | |||
3 | set packpath+=pack/vim | ||
4 | |||
5 | |||
6 | set ttymouse=xterm2 | ||
7 | set ttyscroll=100 | " improves speed for terminal vim, incompatible with nvim | ||
8 | set ttyfast | " improves speed for terminal vim (incompatible with nvim) | ||
9 | set nottybuiltin | " use external termcaps | ||
10 | set restorescreen | " restores the console after exiting vim (intentionally not in nvim) | ||
11 | |||
12 | autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib") | ||
13 | |||
14 | |||
15 | " scripts from the default vim installation, which do not get loaded by default, but are useful. | ||
16 | if filereadable($VIMRUNTIME.'/macros/editexisting.vim') | ||
17 | packadd! editexisting | ||
18 | endif | ||
19 | |||
20 | " load default plugin 'matchit' to allow % to jump between tags | ||
21 | if filereadable($VIMRUNTIME.'/macros/matchit.vim') | ||
22 | packadd! matchit | ||
23 | endif | ||
24 | |||
25 | "======================================================================================================================= | ||
26 | augroup YOUCOMPLETEME | ||
27 | let g:ycm_error_symbol = '✖' " insert this as an error symbol in the gutter bar/sign column | ||
28 | let g:ycm_warning_symbol = '➔' " insert this as a warning symbol in the gutter bar/sign coloumn | ||
29 | |||
30 | let g:ycm_autoclose_preview_window_after_insertion = 0 | ||
31 | let g:ycm_auto_trigger = 1 | ||
32 | let g:ycm_collect_identifiers_from_tags_files = 1 " Let YCM read tags from Ctags file | ||
33 | let g:ycm_confirm_extra_conf = 0 " security is overrated ;) | ||
34 | let g:ycm_always_populate_location_list = 0 " we can manually run :YcmDiags to do that | ||
35 | |||
36 | let g:ycm_key_list_previous_completion = ['Up'] | ||
37 | let g:ycm_key_list_select_completion = ['Down'] | ||
38 | |||
39 | let g:ycm_semantic_triggers = | ||
40 | \ { | ||
41 | \ 'c': [ 're!\w{2}' ] | ||
42 | \ } " per language configurations | ||
43 | |||
44 | |||
45 | packadd YouCompleteMe | ||
46 | augroup END | ||
47 | |||
48 | |||
49 | |||