From 7c85511b5182c166236d8502596fc07072cb5b2a Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 20 Aug 2017 10:47:42 +0200 Subject: default font to droid and highlight current word without color --- vimrc-full | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vimrc-full b/vimrc-full index 9a7e34e..6cba120 100644 --- a/vimrc-full +++ b/vimrc-full @@ -136,10 +136,10 @@ if has("gui_running") " its possible to define alternative fonts (order matters) set guifont= - set guifont+=Source\ Code\ Pro\ for\ Powerline\ SemiBold\ 10 - set guifont+=Meslo\ LG\ M\ for\ Powerline\ Bold\ 10 set guifont+=Droid\ Sans\ Mono\ for\ Powerline + set guifont+=Source\ Code\ Pro\ for\ Powerline\ SemiBold\ 10 set guifont+=Dejavu\ Sans\ Mono\ for\ Powerline\ Semibold + set guifont+=Meslo\ LG\ M\ for\ Powerline\ 10 endif " ======================================================================================================================= @@ -754,6 +754,7 @@ function! ExtendColorTheme() highlight! TabLineSel ctermbg=blue ctermfg=black highlight! link TabLineFill LineNr highlight! Search ctermbg=12 ctermfg=0 + highlight! Italic cterm=italic gui=italic endfunction autocmd! ColorScheme * call ExtendColorTheme() @@ -771,8 +772,8 @@ endif " ====================================================================================================================== -highlight WordBold ctermbg=LightYellow ctermfg=black cterm=bold gui=bold guibg=LightYellow guifg=black let w:m1 = 0 +highlight! BoldItalic cterm=Bold,Italic gui=Bold,Italic function! HighlightWordUnderCursor() if(exists('w:m1') && w:m1 > 0) silent! call matchdelete(w:m1) @@ -781,7 +782,7 @@ function! HighlightWordUnderCursor() let l:currentword = escape(expand(''), '.') if(strlen(l:currentword) > 0) let w:m1=100 - silent! call matchadd('WordBold', '\<'.l:currentword.'\>', -1, w:m1) + silent! call matchadd('BoldItalic', '\<'.l:currentword.'\>', -1, w:m1) endif endfunction autocmd! CursorHold,CursorHoldI * call HighlightWordUnderCursor() -- cgit v1.2.3