aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorMax Christian Pohle2018-10-22 00:02:58 +0200
committerMax Christian Pohle2018-10-22 20:42:25 +0200
commitf2e01d7e513067ddb57c75f6e38cdcf434946cf8 (patch)
tree4e8448506756d2144db173d01385798840507133 /vimrc
parent31f80d9c334e38e486545407ea5eb5f5cbb2f07d (diff)
downloadvim-karlmarks-f2e01d7e513067ddb57c75f6e38cdcf434946cf8.tar.bz2
vim-karlmarks-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---------]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
..