From 1d0fef966b54af56a57f068768be860bf34efc15 Mon Sep 17 00:00:00 2001 From: Huaishun Hu Date: Fri, 15 Dec 2017 13:28:38 +0800 Subject: [PATCH] decrease editor font size; increase Mark.vim color numbers --- my_configs.vim | 10 ++++----- sources_non_forked/Mark/plugin/mark.vim | 29 ++++++++++++++----------- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/my_configs.vim b/my_configs.vim index fb75dd44..3906dbea 100644 --- a/my_configs.vim +++ b/my_configs.vim @@ -1,13 +1,13 @@ if has("mac") || has("macunix") - set gfn=Hack:h10,Source\ Code\ Pro:h10,Menlo:h10 + set gfn=Hack:h9,Source\ Code\ Pro:h9,Menlo:h9 elseif has("win16") || has("win32") - set gfn=Hack:h10,Source\ Code\ Pro:h10,Bitstream\ Vera\ Sans\ Mono:h10 + set gfn=Hack:h9,Source\ Code\ Pro:h9,Bitstream\ Vera\ Sans\ Mono:h9 elseif has("gui_gtk2") - set gfn=Hack\ 10,Source\ Code\ Pro\ 10,Bitstream\ Vera\ Sans\ Mono\ 10 + set gfn=Hack\ 9,Source\ Code\ Pro\ 9,Bitstream\ Vera\ Sans\ Mono\ 9 elseif has("linux") - set gfn=Hack\ 10,Source\ Code\ Pro\ 10,Bitstream\ Vera\ Sans\ Mono\ 10 + set gfn=Hack\ 9,Source\ Code\ Pro\ 9,Bitstream\ Vera\ Sans\ Mono\ 9 elseif has("unix") - set gfn=Monospace\ 10 + set gfn=Monospace\ 9 endif " move around tabs. conflict with the original screen top/bottom diff --git a/sources_non_forked/Mark/plugin/mark.vim b/sources_non_forked/Mark/plugin/mark.vim index dfdd0307..a30be536 100644 --- a/sources_non_forked/Mark/plugin/mark.vim +++ b/sources_non_forked/Mark/plugin/mark.vim @@ -67,12 +67,22 @@ " default colors/groups " you may define your own colors in you vimrc file, in the form as below: -hi MarkWord1 ctermbg=Cyan ctermfg=Black guibg=#8CCBEA guifg=Black -hi MarkWord2 ctermbg=Green ctermfg=Black guibg=#A4E57E guifg=Black -hi MarkWord3 ctermbg=Yellow ctermfg=Black guibg=#FFDB72 guifg=Black -hi MarkWord4 ctermbg=Red ctermfg=Black guibg=#FF7272 guifg=Black -hi MarkWord5 ctermbg=Magenta ctermfg=Black guibg=#FFB3FF guifg=Black -hi MarkWord6 ctermbg=Blue ctermfg=Black guibg=#9999FF guifg=Black +hi MarkWord1 ctermbg=Cyan ctermfg=Black guibg=#ff7f50 guifg=Black +hi MarkWord2 ctermbg=Green ctermfg=Black guibg=#A4E57E guifg=Black +hi MarkWord3 ctermbg=Yellow ctermfg=Black guibg=#FFDB72 guifg=Black +hi MarkWord4 ctermbg=Red ctermfg=Black guibg=#ff4500 guifg=Black +hi MarkWord5 ctermbg=Magenta ctermfg=Black guibg=#ff00ff guifg=Black +hi MarkWord6 ctermbg=Blue ctermfg=Black guibg=#87ceeb guifg=Black +hi MarkWord7 ctermbg=DarkBlue ctermfg=Black guibg=#0000FF guifg=White +hi MarkWord8 ctermbg=DarkGreen ctermfg=Black guibg=#00FF00 guifg=Black +hi MarkWord9 ctermbg=DarkCyan ctermfg=Black guibg=#00FFFF guifg=Black +hi MarkWord10 ctermbg=DarkRed ctermfg=Black guibg=#FF0000 guifg=White +hi MarkWord11 ctermbg=DarkMagenta ctermfg=Black guibg=#FF00FF guifg=White +hi MarkWord12 ctermbg=Brown ctermfg=Black guibg=#8b008b guifg=White +hi MarkWord13 ctermbg=Grey ctermfg=Black guibg=#fafad2 guifg=Black +hi MarkWord14 ctermbg=Green ctermfg=Black guibg=#adff2f guifg=Black + +let g:mwCycleMax=14 " Anti reinclusion guards if exists('g:loaded_mark') && !exists('g:force_reload_mark') @@ -218,13 +228,6 @@ function! s:InitMarkVariables() if !exists("g:mwHistAdd") let g:mwHistAdd = "/@" endif - if !exists("g:mwCycleMax") - let i = 1 - while hlexists("MarkWord" . i) - let i = i + 1 - endwhile - let g:mwCycleMax = i - 1 - endif if !exists("g:mwCycle") let g:mwCycle = 1 endif