From f3d5077ad1762c49948e73acf7eebb187dc9134f Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 14 Jun 2016 04:24:36 +0300 Subject: [PATCH] .vim: change color; make synload.vim a colorscheme --- .muttrc | 2 +- .vim/{syntax/synload.vim => colors/phd.vim} | 22 ++++++++++----------- .vim/syntax/mail.vim | 6 +++--- .vimrc | 1 + 4 files changed, 16 insertions(+), 15 deletions(-) rename .vim/{syntax/synload.vim => colors/phd.vim} (83%) diff --git a/.muttrc b/.muttrc index 3659ad1..f0fea21 100644 --- a/.muttrc +++ b/.muttrc @@ -403,7 +403,7 @@ color tilde blue default color tree blue default # email -color body brightblue default [-a-Z_0-9.+]+@[-a-Z_0-9.]+ +color body brightmagenta default [-a-Z_0-9.+]+@[-a-Z_0-9.]+ # URLs color body brightblue default "(((https?|ftp|gopher|telnet)://|(mailto|file|news|about|ed2k|irc|sip|magnet):)[^' \t<>\"]+)[A-Za-z0-9/]" diff --git a/.vim/syntax/synload.vim b/.vim/colors/phd.vim similarity index 83% rename from .vim/syntax/synload.vim rename to .vim/colors/phd.vim index ef24df1..fd2ecd7 100644 --- a/.vim/syntax/synload.vim +++ b/.vim/colors/phd.vim @@ -1,7 +1,8 @@ -" Load standard colors -source $VIMRUNTIME/syntax/synload.vim - -" Override for all syntax files +highlight clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "phd" if !has("gui_running") if &background == 'light' @@ -14,19 +15,14 @@ if !has("gui_running") endif endif -highlight SpellBad term=underline ctermfg=white ctermbg=red guifg=white guibg=red " gui=undercurl guisp=red -highlight StatusLine cterm=bold,reverse ctermfg=blue ctermbg=white guifg=blue guibg=white -highlight Visual ctermfg=white ctermbg=blue guifg=white guibg=blue " Selection highlighting - if &background == 'light' - highlight Comment ctermfg=darkmagenta guifg=darkmagenta - highlight Constant ctermfg=brown guifg=brown + highlight Comment ctermfg=darkgrey guifg=grey + highlight Constant ctermfg=blue guifg=blue highlight Cursor guifg=white guibg=green highlight Identifier ctermfg=black guifg=black highlight NonText ctermfg=darkgrey guifg=grey highlight Normal guibg=grey90 highlight PreProc ctermfg=darkgreen guifg=darkgreen - highlight Special ctermfg=darkgrey highlight SpecialKey ctermfg=darkgrey highlight Statement cterm=bold ctermfg=black guifg=black highlight Type ctermfg=black guifg=black @@ -38,3 +34,7 @@ if &background == 'light' highlight DiffDelete ctermfg=black ctermbg=red endif endif + +highlight SpellBad term=underline ctermfg=white ctermbg=red guifg=white guibg=red " gui=undercurl guisp=red +highlight StatusLine cterm=bold,reverse ctermfg=blue ctermbg=white guifg=blue guibg=white +highlight Visual ctermfg=white ctermbg=blue guifg=white guibg=blue " Selection highlighting diff --git a/.vim/syntax/mail.vim b/.vim/syntax/mail.vim index 316bd88..4e7977e 100644 --- a/.vim/syntax/mail.vim +++ b/.vim/syntax/mail.vim @@ -4,10 +4,10 @@ syntax match mailSmile ' [;:]-*[dp(){}<>|\\/]\| [(){}<>\\/]-*[;:]' " :-) syntax match mailURL contains=@NoSpell `\v<(((https?|ftp|gopher|telnet)://|(mailto|file|news|about|ed2k|irc|sip|magnet):)[^' \t<>"]+|(www|web|w3)[a-z0-9_-]*\.[a-z0-9._-]+\.[^' \t<>"]+)[a-z0-9/]` if &background == 'light' - highlight Statement cterm=NONE ctermfg=black gui=NONE guifg=darkgrey + highlight Statement cterm=NONE ctermfg=black gui=NONE guifg=black highlight link mailHeaderEmail Normal - highlight mailHeaderKey cterm=bold ctermfg=black - highlight link mailEmail Comment + highlight mailHeaderKey cterm=bold ctermfg=black gui=bold + highlight mailEmail ctermfg=darkmagenta guifg=darkmagenta highlight mailSubject cterm=bold ctermfg=darkgrey gui=bold highlight mailSmile cterm=bold ctermfg=darkmagenta gui=bold guifg=darkmagenta highlight mailQuoted1 cterm=NONE ctermfg=blue gui=NONE guifg=blue diff --git a/.vimrc b/.vimrc index 02e7790..bc4a54a 100644 --- a/.vimrc +++ b/.vimrc @@ -55,6 +55,7 @@ set sidescroll=1 " The minimal number of columns to scroll horizontally " 5 highlighting +colorscheme phd set nohlsearch " Stop the search highlighting " 6 multiple windows -- 2.39.5