diff options
author | Max Christian Pohle | 2018-10-22 00:02:58 +0200 |
---|---|---|
committer | Max Christian Pohle | 2018-10-22 20:42:25 +0200 |
commit | f2e01d7e513067ddb57c75f6e38cdcf434946cf8 (patch) | |
tree | 4e8448506756d2144db173d01385798840507133 /vimrc | |
parent | 31f80d9c334e38e486545407ea5eb5f5cbb2f07d (diff) | |
download | vim-f2e01d7e513067ddb57c75f6e38cdcf434946cf8.tar.bz2 vim-f2e01d7e513067ddb57c75f6e38cdcf434946cf8.zip |
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.
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 | |||