aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--[l---------]vimrc50
1 files changed, 49 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 9a5cefb..1b9f20b 120000..100644
--- a/vimrc
+++ b/vimrc
@@ -1 +1,49 @@
1vimrc-full \ No newline at end of file 1exec ':source '.fnamemodify($MYVIMRC,':h').'/vimrc-common'
2
3set packpath+=pack/vim
4
5
6set ttymouse=xterm2
7set ttyscroll=100 | " improves speed for terminal vim, incompatible with nvim
8set ttyfast | " improves speed for terminal vim (incompatible with nvim)
9set nottybuiltin | " use external termcaps
10set restorescreen | " restores the console after exiting vim (intentionally not in nvim)
11
12autocmd 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.
16if filereadable($VIMRUNTIME.'/macros/editexisting.vim')
17 packadd! editexisting
18endif
19
20" load default plugin 'matchit' to allow % to jump between tags
21if filereadable($VIMRUNTIME.'/macros/matchit.vim')
22 packadd! matchit
23endif
24
25"=======================================================================================================================
26augroup 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
46augroup END
47
48
49
..