From 4e54ce5dddbf493496e6cf751f5df23b13c51637 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 11 Jun 2017 02:58:31 +0200 Subject: Tweaked lightline --- vimrc-full | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) (limited to 'vimrc-full') 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, set background=light | Plug 'itchyny/lightline.vim' +let g:lightline = { + \ 'colorscheme': 'PaperColor_light', + \ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" }, + \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" }, + \ 'active': { + \ 'left': [ [ 'mode', 'paste' ], + \ [ 'gitbranch', 'readonly' ] ], + \ 'right': [ [ 'lineinfo' ], + \ [ 'percent' ], + \ [ 'fileformat', 'fileencoding', 'filetype', 'charvaluehex' ] ] + \ }, + \ 'component_function': { + \ 'gitbranch': 'fugitive#head' + \ }, + \ 'tabline': { + \ 'left': [ ['tabs'] ], + \ 'right': [ [ 'close' ] ] + \ } + \ } " Plug 'vim-airline/vim-airline' | " beautification of the mode line " let g:airline_section_c = "%F" | " was: %F @@ -281,12 +300,12 @@ if has("python") " autocmd FileType c,cpp,objc map = (operator-clang-format) " JEDI: ============================================================================================================== - Plug 'davidhalter/jedi-vim' " jedi gets used to display python function signatures - let g:jedi#completions_enabled = 0 " we do not need completions, because we have YouCompleteMe - let g:jedi#show_call_signatures = 1 " which sadly does not support signatures like jedi - let g:jedi#show_call_signatures_delay = 0 - let g:jedi#auto_vim_configure = 0 - let g:pymode_rope = 0 " https://github.com/davidhalter/jedi-vim/issues/163 + " Plug 'davidhalter/jedi-vim' " jedi gets used to display python function signatures + " let g:jedi#completions_enabled = 0 " we do not need completions, because we have YouCompleteMe + " let g:jedi#show_call_signatures = 1 " which sadly does not support signatures like jedi + " let g:jedi#show_call_signatures_delay = 0 + " let g:jedi#auto_vim_configure = 0 + " let g:pymode_rope = 0 " https://github.com/davidhalter/jedi-vim/issues/163 " autocmd FileType python jedi.preload_module('os', 'sys', 'math') " let g:pymode_options_max_line_length = 120 " let g:syntastic_python_flake8_args='--ignore=F821,E302,E501,E241,E301' @@ -664,7 +683,7 @@ highlight WordBold cterm=bold gui=bold let w:m1 = 0 function! HighlightWordUnderCursor() if(exists('w:m1') && w:m1 > 0) - call matchdelete(w:m1) + silent! call matchdelete(w:m1) let w:m1 = 0 endif let l:currentword = escape(expand(''), '.') -- cgit v1.2.3