diff options
| -rw-r--r-- | vimrc-full | 9 |
1 files changed, 5 insertions, 4 deletions
| @@ -136,10 +136,10 @@ if has("gui_running") | |||
| 136 | 136 | ||
| 137 | " its possible to define alternative fonts (order matters) | 137 | " its possible to define alternative fonts (order matters) |
| 138 | set guifont= | 138 | set guifont= |
| 139 | set guifont+=Source\ Code\ Pro\ for\ Powerline\ SemiBold\ 10 | ||
| 140 | set guifont+=Meslo\ LG\ M\ for\ Powerline\ Bold\ 10 | ||
| 141 | set guifont+=Droid\ Sans\ Mono\ for\ Powerline | 139 | set guifont+=Droid\ Sans\ Mono\ for\ Powerline |
| 140 | set guifont+=Source\ Code\ Pro\ for\ Powerline\ SemiBold\ 10 | ||
| 142 | set guifont+=Dejavu\ Sans\ Mono\ for\ Powerline\ Semibold | 141 | set guifont+=Dejavu\ Sans\ Mono\ for\ Powerline\ Semibold |
| 142 | set guifont+=Meslo\ LG\ M\ for\ Powerline\ 10 | ||
| 143 | endif | 143 | endif |
| 144 | 144 | ||
| 145 | " ======================================================================================================================= | 145 | " ======================================================================================================================= |
| @@ -754,6 +754,7 @@ function! ExtendColorTheme() | |||
| 754 | highlight! TabLineSel ctermbg=blue ctermfg=black | 754 | highlight! TabLineSel ctermbg=blue ctermfg=black |
| 755 | highlight! link TabLineFill LineNr | 755 | highlight! link TabLineFill LineNr |
| 756 | highlight! Search ctermbg=12 ctermfg=0 | 756 | highlight! Search ctermbg=12 ctermfg=0 |
| 757 | highlight! Italic cterm=italic gui=italic | ||
| 757 | endfunction | 758 | endfunction |
| 758 | autocmd! ColorScheme * call ExtendColorTheme() | 759 | autocmd! ColorScheme * call ExtendColorTheme() |
| 759 | 760 | ||
| @@ -771,8 +772,8 @@ endif | |||
| 771 | 772 | ||
| 772 | 773 | ||
| 773 | " ====================================================================================================================== | 774 | " ====================================================================================================================== |
| 774 | highlight WordBold ctermbg=LightYellow ctermfg=black cterm=bold gui=bold guibg=LightYellow guifg=black | ||
| 775 | let w:m1 = 0 | 775 | let w:m1 = 0 |
| 776 | highlight! BoldItalic cterm=Bold,Italic gui=Bold,Italic | ||
| 776 | function! HighlightWordUnderCursor() | 777 | function! HighlightWordUnderCursor() |
| 777 | if(exists('w:m1') && w:m1 > 0) | 778 | if(exists('w:m1') && w:m1 > 0) |
| 778 | silent! call matchdelete(w:m1) | 779 | silent! call matchdelete(w:m1) |
| @@ -781,7 +782,7 @@ function! HighlightWordUnderCursor() | |||
| 781 | let l:currentword = escape(expand('<cword>'), '.') | 782 | let l:currentword = escape(expand('<cword>'), '.') |
| 782 | if(strlen(l:currentword) > 0) | 783 | if(strlen(l:currentword) > 0) |
| 783 | let w:m1=100 | 784 | let w:m1=100 |
| 784 | silent! call matchadd('WordBold', '\<'.l:currentword.'\>', -1, w:m1) | 785 | silent! call matchadd('BoldItalic', '\<'.l:currentword.'\>', -1, w:m1) |
| 785 | endif | 786 | endif |
| 786 | endfunction | 787 | endfunction |
| 787 | autocmd! CursorHold,CursorHoldI * call HighlightWordUnderCursor() | 788 | autocmd! CursorHold,CursorHoldI * call HighlightWordUnderCursor() |
