diff options
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -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: ========================================. |
45 | Plug 'loremipsum' | " Sample text generator | ||
46 | Plug 'sheerun/vim-polyglot' | " better syntax highlighting/indentation for multiple languages | 45 | Plug 'sheerun/vim-polyglot' | " better syntax highlighting/indentation for multiple languages |
47 | Plug 'taglist-plus' | " quick code navigator | 46 | Plug 'taglist-plus' | " quick code navigator |
48 | 47 | ||
49 | " Autocompleter: =====================================. | 48 | " Autocompleter: =====================================. |
50 | Plug 'Valloric/MatchTagAlways' | 49 | Plug 'Valloric/MatchTagAlways' |
51 | Plug 'Valloric/YouCompleteMe' | 50 | Plug 'Valloric/YouCompleteMe' |
51 | let g:ycm_collect_identifiers_from_tags_files = 1 " Let YCM read tags from Ctags file | ||
52 | let g:ycm_use_ultisnips_completer = 1 " Default 1, just ensure | ||
53 | let g:ycm_seed_identifiers_with_syntax = 1 " Completion for programming language's keyword | ||
54 | let g:ycm_complete_in_comments = 1 " Completion in comments | ||
55 | let g:ycm_complete_in_strings = 1 " Completion in string | ||
52 | Plug 'scrooloose/syntastic' | 56 | Plug 'scrooloose/syntastic' |
53 | set statusline+=%#warningmsg# | 57 | set statusline+=%#warningmsg# |
54 | set statusline+=%{SyntasticStatuslineFlag()} | 58 | set statusline+=%{SyntasticStatuslineFlag()} |
@@ -63,6 +67,16 @@ Plug 'davidhalter/jedi-vim' | " jedi gets used to disp | |||
63 | let g:jedi#completions_enabled = 0 | " we do not need completions, because we have YouCompleteMe | 67 | let g:jedi#completions_enabled = 0 | " we do not need completions, because we have YouCompleteMe |
64 | let g:jedi#show_call_signatures = 1 | " which sadly does not support signatures like jedi | 68 | let g:jedi#show_call_signatures = 1 | " which sadly does not support signatures like jedi |
65 | let g:jedi#show_call_signatures_delay = 0 | 69 | let g:jedi#show_call_signatures_delay = 0 |
70 | let g:jedi#auto_vim_configure = 0 | ||
71 | Plug 'SirVer/ultisnips' | " replaces loremipsum (and many more) | ||
72 | Plug 'honza/vim-snippets' | " dependency of ultisnips | ||
73 | " Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. | ||
74 | "" Ultisnips | ||
75 | let g:UltiSnipsExpandTrigger="<c-tab>" | ||
76 | let g:UltiSnipsListSnippets="<c-s-tab>" | ||
77 | |||
78 | " If you want :UltiSnipsEdit to split your window. | ||
79 | let 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 | |||
103 | nnoremap <C-l> :TlistToggle<CR>| " bind TagList to Hotkey Ctrl+L | 117 | nnoremap <C-l> :TlistToggle<CR>| " bind TagList to Hotkey Ctrl+L |
104 | 118 | ||
105 | " settings ============================================. | 119 | " settings ============================================. |
106 | set 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 |
107 | set noshowmode | " because we are using some powerline derivat | 121 | set noshowmode | " because we are using some powerline derivat |
108 | set hidden | " allows switiching buffers even if the current buffer contains changes (displays +) | 122 | set hidden | " allows switiching buffers even if the current buffer contains changes (displays +) |
109 | set confirm | " asks 'do you want to save?' | 123 | set confirm | " asks 'do you want to save?' |