From: martin f. krafft Date: Thu, 27 Sep 2007 16:38:30 +0000 (+0100) Subject: move and fix syntax highlighting for tex files X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/12cb81688b8dadb41ce75c74cd8822fb28f406f1?ds=inline;hp=--cc move and fix syntax highlighting for tex files --- 12cb81688b8dadb41ce75c74cd8822fb28f406f1 diff --git a/.vim/after/syntax/tex.vim b/.vim/after/syntax/tex.vim new file mode 100644 index 0000000..ef36833 --- /dev/null +++ b/.vim/after/syntax/tex.vim @@ -0,0 +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 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 diff --git a/.vim/syntax/tex.vim b/.vim/syntax/tex.vim deleted file mode 100644 index 72560a1..0000000 --- a/.vim/syntax/tex.vim +++ /dev/null @@ -1,8 +0,0 @@ -syntax match TexMySection "^\\section{.*}" -syntax match TexMySubSection "^\\subsection{.*}" -syntax match TexMySubSubSection "^\\subsubsection{.*}" -syntax match TexMyParagraph "^\\paragraph{.*}" -highlight TexMySection ctermbg=black ctermfg=white cterm=bold term=reverse -highlight TexMySubSection ctermbg=blue ctermfg=white cterm=bold term=reverse -highlight TexMySubSubSection ctermbg=cyan ctermfg=black cterm=bold term=reverse -highlight TexMyParagraph ctermbg=none ctermfg=blue cterm=bold term=reverse