From: martin f. krafft Date: Thu, 27 Sep 2007 16:39:19 +0000 (+0100) Subject: fix tex syntax highlighting X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/6d22782accb703f09b3c8b547a8f86ab479b0f91 fix tex syntax highlighting --- diff --git a/.vim/after/syntax/tex.vim b/.vim/after/syntax/tex.vim index ef36833..f5ccec6 100644 --- a/.vim/after/syntax/tex.vim +++ b/.vim/after/syntax/tex.vim @@ -1,12 +1,12 @@ -"syn match TexMySection "^\\section{.*}" -"syn match TexMySubSection "^\\subsection{.*}" -"syn match TexMySubSubSection "^\\subsubsection{.*}" -"syn match TexMyParagraph "^\\paragraph{.*}" -"hi TexMySection ctermbg=black ctermfg=white cterm=bold term=reverse -"hi TexMySubSection ctermbg=blue ctermfg=white cterm=bold term=reverse -"hi TexMySubSubSection ctermbg=cyan ctermfg=black cterm=bold term=reverse -"hi TexMyParagraph ctermbg=none ctermfg=blue cterm=bold term=reverse +syn match TexMySection "^\\section{.*}" +syn match TexMySubSection "^\\subsection{.*}" +syn match TexMySubSubSection "^\\subsubsection{.*}" +syn match TexMyParagraph "^\\paragraph{.*}" +hi TexMySection ctermbg=black ctermfg=white cterm=bold term=reverse +hi TexMySubSection ctermbg=blue ctermfg=white cterm=bold term=reverse +hi TexMySubSubSection ctermbg=cyan ctermfg=black cterm=bold term=reverse +hi TexMyParagraph ctermbg=none ctermfg=blue cterm=bold term=reverse -syn region texMyRefZone matchgroup=texStatement start="\\[cefp]label{" end="}\|%stopzone\>" contains=@texRefGroup -syn region texMyRefZone matchgroup=texStatement start="\\[cCeEfFpP]x\=ref{" end="}\|%stopzone\>" contains=@texRefGroup -syn region texForeign matchgroup=texStatement start="\\foreign{" end="}\|%stopzone\>" contains=@NoSpell +syn region texRefZone matchgroup=texStatement start="\\[cefp]label{" end="}\|%stopzone\>" contains=@texRefGroup +syn region texRefZone matchgroup=texStatement start="\\[cCeEfFpP]x\=ref{" end="}\|%stopzone\>" contains=@texRefGroup +syn region texMyForeign matchgroup=texStatement start="\\foreign{" end="}\|%stopzone\>" contains=@NoSpell diff --git a/.vim/colors/madduck.vim b/.vim/colors/madduck.vim index 6c59fb8..f1a71bb 100644 --- a/.vim/colors/madduck.vim +++ b/.vim/colors/madduck.vim @@ -28,6 +28,9 @@ if &background == "dark" hi mailQuoted5 ctermfg=darkgreen hi mailQuoted6 ctermfg=magenta + hi Error ctermfg=White ctermbg=Red cterm=reverse term=reverse + hi Todo ctermfg=Black ctermbg=Yellow cterm=standout term=standout + else hi Comment ctermfg=Black ctermbg=White cterm=none term=bold hi Constant ctermfg=DarkGray ctermbg=none cterm=none term=underline @@ -50,6 +53,15 @@ else hi mailQuoted4 ctermfg=darkred hi mailQuoted5 ctermfg=darkmagenta hi mailQuoted6 ctermfg=darkgreen + + hi Error ctermfg=White ctermbg=Red cterm=reverse term=reverse + hi Todo ctermfg=Black ctermbg=Yellow cterm=standout term=standout + + hi SpellBad ctermfg=white ctermbg=darkred cterm=none term=reverse + hi SpellCap ctermfg=darkred ctermbg=none cterm=bold term=reverse + hi SpellRare ctermfg=red ctermbg=none cterm=none term=reverse + hi SpellLocal ctermfg=white ctermbg=magenta cterm=none term=reverse + endif -hi Error ctermfg=White ctermbg=Red cterm=reverse term=reverse -hi Todo ctermfg=Black ctermbg=Yellow cterm=standout term=standout + +" vim:sts=8:sw=8:noet