aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2017-06-11 02:58:31 +0200
committerMax Christian Pohle2017-06-11 02:58:31 +0200
commit4e54ce5dddbf493496e6cf751f5df23b13c51637 (patch)
tree7804455c7222ac2885424690b7f26be58f2297bf
parenta33cad9d1738a39e83916d7d928a1ec7e0662f48 (diff)
downloadvim-4e54ce5dddbf493496e6cf751f5df23b13c51637.tar.bz2
vim-4e54ce5dddbf493496e6cf751f5df23b13c51637.zip
Tweaked lightline
-rw-r--r--vimrc-full33
-rw-r--r--ycm_extra_conf.py27
2 files changed, 53 insertions, 7 deletions
diff --git a/vimrc-full b/vimrc-full
index fac043b..c34cbc9 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -167,6 +167,25 @@ set laststatus=2 | " required by AirLine,
167set background=light | 167set background=light |
168 168
169Plug 'itchyny/lightline.vim' 169Plug 'itchyny/lightline.vim'
170let g:lightline = {
171 \ 'colorscheme': 'PaperColor_light',
172 \ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" },
173 \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" },
174 \ 'active': {
175 \ 'left': [ [ 'mode', 'paste' ],
176 \ [ 'gitbranch', 'readonly' ] ],
177 \ 'right': [ [ 'lineinfo' ],
178 \ [ 'percent' ],
179 \ [ 'fileformat', 'fileencoding', 'filetype', 'charvaluehex' ] ]
180 \ },
181 \ 'component_function': {
182 \ 'gitbranch': 'fugitive#head'
183 \ },
184 \ 'tabline': {
185 \ 'left': [ ['tabs'] ],
186 \ 'right': [ [ 'close' ] ]
187 \ }
188 \ }
170 189
171" Plug 'vim-airline/vim-airline' | " beautification of the mode line 190" Plug 'vim-airline/vim-airline' | " beautification of the mode line
172" let g:airline_section_c = "%F" | " was: %F 191" let g:airline_section_c = "%F" | " was: %F
@@ -281,12 +300,12 @@ if has("python")
281 " autocmd FileType c,cpp,objc map <buffer> = <Plug>(operator-clang-format) 300 " autocmd FileType c,cpp,objc map <buffer> = <Plug>(operator-clang-format)
282 301
283 " JEDI: ============================================================================================================== 302 " JEDI: ==============================================================================================================
284 Plug 'davidhalter/jedi-vim' " jedi gets used to display python function signatures 303 " Plug 'davidhalter/jedi-vim' " jedi gets used to display python function signatures
285 let g:jedi#completions_enabled = 0 " we do not need completions, because we have YouCompleteMe 304 " let g:jedi#completions_enabled = 0 " we do not need completions, because we have YouCompleteMe
286 let g:jedi#show_call_signatures = 1 " which sadly does not support signatures like jedi 305 " let g:jedi#show_call_signatures = 1 " which sadly does not support signatures like jedi
287 let g:jedi#show_call_signatures_delay = 0 306 " let g:jedi#show_call_signatures_delay = 0
288 let g:jedi#auto_vim_configure = 0 307 " let g:jedi#auto_vim_configure = 0
289 let g:pymode_rope = 0 " https://github.com/davidhalter/jedi-vim/issues/163 308 " let g:pymode_rope = 0 " https://github.com/davidhalter/jedi-vim/issues/163
290 " autocmd FileType python jedi.preload_module('os', 'sys', 'math') 309 " autocmd FileType python jedi.preload_module('os', 'sys', 'math')
291 " let g:pymode_options_max_line_length = 120 310 " let g:pymode_options_max_line_length = 120
292 " let g:syntastic_python_flake8_args='--ignore=F821,E302,E501,E241,E301' 311 " let g:syntastic_python_flake8_args='--ignore=F821,E302,E501,E241,E301'
@@ -664,7 +683,7 @@ highlight WordBold cterm=bold gui=bold
664let w:m1 = 0 683let w:m1 = 0
665function! HighlightWordUnderCursor() 684function! HighlightWordUnderCursor()
666 if(exists('w:m1') && w:m1 > 0) 685 if(exists('w:m1') && w:m1 > 0)
667 call matchdelete(w:m1) 686 silent! call matchdelete(w:m1)
668 let w:m1 = 0 687 let w:m1 = 0
669 endif 688 endif
670 let l:currentword = escape(expand('<cword>'), '.') 689 let l:currentword = escape(expand('<cword>'), '.')
diff --git a/ycm_extra_conf.py b/ycm_extra_conf.py
index 7a1828f..3c2b399 100644
--- a/ycm_extra_conf.py
+++ b/ycm_extra_conf.py
@@ -1,3 +1,4 @@
1<<<<<<< Updated upstream
1def FlagsForFile(filename, **kwargs): 2def FlagsForFile(filename, **kwargs):
2 return { 3 return {
3 'flags': [ 4 'flags': [
@@ -19,3 +20,29 @@ def FlagsForFile(filename, **kwargs):
19 } 20 }
20 21
21# vim:set et sw=4 ts=4 tw=120: 22# vim:set et sw=4 ts=4 tw=120:
23=======
24import os
25import ycm_core
26
27def FlagsForFile( filename, **kwargs ):
28 return {
29 'flags': [
30 '-Wall',
31 '-Wextra',
32 '-Werror',
33 '-Wno-long-long',
34 '-Wno-variadic-macros',
35 '-fexceptions',
36 '-ferror-limit=10000',
37 '-DNDEBUG',
38 '-std=c99',
39 '-x', 'c',
40 '-D_GNU_SOURCE',
41 '-I.',
42 '-I', '/usr/include/'
43 ],
44 'do_cache': True,
45 }
46
47# vim:set et sw=2 ts=2 tw=120:
48>>>>>>> Stashed changes
..