From 12cb81688b8dadb41ce75c74cd8822fb28f406f1 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 27 Sep 2007 17:38:30 +0100 Subject: [PATCH] move and fix syntax highlighting for tex files --- .vim/after/syntax/tex.vim | 12 ++++++++++++ .vim/syntax/tex.vim | 8 -------- 2 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 .vim/after/syntax/tex.vim delete mode 100644 .vim/syntax/tex.vim 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 -- 2.39.5