]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

move and fix syntax highlighting for tex files
authormartin f. krafft <madduck@madduck.net>
Thu, 27 Sep 2007 16:38:30 +0000 (17:38 +0100)
committermartin f. krafft <madduck@madduck.net>
Thu, 27 Sep 2007 16:38:30 +0000 (17:38 +0100)
.vim/after/syntax/tex.vim [new file with mode: 0644]
.vim/syntax/tex.vim [deleted file]

diff --git a/.vim/after/syntax/tex.vim b/.vim/after/syntax/tex.vim
new file mode 100644 (file)
index 0000000..ef36833
--- /dev/null
@@ -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 (file)
index 72560a1..0000000
+++ /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