aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc18
1 files changed, 16 insertions, 2 deletions
diff --git a/vimrc b/vimrc
index 7a9ea91..4f573d4 100644
--- a/vimrc
+++ b/vimrc
@@ -42,13 +42,17 @@ let g:airline_theme='base16' | " specifies which colors
42" let g:airline_theme='tomorrow' | " specifies which colorscheme should airline uses 42" let g:airline_theme='tomorrow' | " specifies which colorscheme should airline uses
43 43
44" Additional: ========================================. 44" Additional: ========================================.
45Plug 'loremipsum' | " Sample text generator
46Plug 'sheerun/vim-polyglot' | " better syntax highlighting/indentation for multiple languages 45Plug 'sheerun/vim-polyglot' | " better syntax highlighting/indentation for multiple languages
47Plug 'taglist-plus' | " quick code navigator 46Plug 'taglist-plus' | " quick code navigator
48 47
49" Autocompleter: =====================================. 48" Autocompleter: =====================================.
50Plug 'Valloric/MatchTagAlways' 49Plug 'Valloric/MatchTagAlways'
51Plug 'Valloric/YouCompleteMe' 50Plug 'Valloric/YouCompleteMe'
51let g:ycm_collect_identifiers_from_tags_files = 1 " Let YCM read tags from Ctags file
52let g:ycm_use_ultisnips_completer = 1 " Default 1, just ensure
53let g:ycm_seed_identifiers_with_syntax = 1 " Completion for programming language's keyword
54let g:ycm_complete_in_comments = 1 " Completion in comments
55let g:ycm_complete_in_strings = 1 " Completion in string
52Plug 'scrooloose/syntastic' 56Plug 'scrooloose/syntastic'
53set statusline+=%#warningmsg# 57set statusline+=%#warningmsg#
54set statusline+=%{SyntasticStatuslineFlag()} 58set statusline+=%{SyntasticStatuslineFlag()}
@@ -63,6 +67,16 @@ Plug 'davidhalter/jedi-vim' | " jedi gets used to disp
63let g:jedi#completions_enabled = 0 | " we do not need completions, because we have YouCompleteMe 67let g:jedi#completions_enabled = 0 | " we do not need completions, because we have YouCompleteMe
64let g:jedi#show_call_signatures = 1 | " which sadly does not support signatures like jedi 68let g:jedi#show_call_signatures = 1 | " which sadly does not support signatures like jedi
65let g:jedi#show_call_signatures_delay = 0 69let g:jedi#show_call_signatures_delay = 0
70let g:jedi#auto_vim_configure = 0
71Plug 'SirVer/ultisnips' | " replaces loremipsum (and many more)
72Plug 'honza/vim-snippets' | " dependency of ultisnips
73" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
74"" Ultisnips
75let g:UltiSnipsExpandTrigger="<c-tab>"
76let g:UltiSnipsListSnippets="<c-s-tab>"
77
78" If you want :UltiSnipsEdit to split your window.
79let g:UltiSnipsEditSplit="vertical"
66 80
67" Disabled ===========================================. 81" Disabled ===========================================.
68" Plug 'Shougo/neocomplete.vim' | " alternative to YouCompleteMe in some cases 82" Plug 'Shougo/neocomplete.vim' | " alternative to YouCompleteMe in some cases
@@ -103,7 +117,7 @@ nnoremap <C-S-Tab> :bp<CR>| " use CTRL+Shift+Tab to switch to preview tab
103nnoremap <C-l> :TlistToggle<CR>| " bind TagList to Hotkey Ctrl+L 117nnoremap <C-l> :TlistToggle<CR>| " bind TagList to Hotkey Ctrl+L
104 118
105" settings ============================================. 119" settings ============================================.
106set shell=/bin/bash | " many scripts rely on bash, so make this the default 120" set shell=/bin/bash | " many scripts rely on bash, but its path varies why it is commented out here
107set noshowmode | " because we are using some powerline derivat 121set noshowmode | " because we are using some powerline derivat
108set hidden | " allows switiching buffers even if the current buffer contains changes (displays +) 122set hidden | " allows switiching buffers even if the current buffer contains changes (displays +)
109set confirm | " asks 'do you want to save?' 123set confirm | " asks 'do you want to save?'
..