summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/third/vim/t-vim.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/third/vim/t-vim.tex')
-rw-r--r--Master/texmf-dist/tex/context/third/vim/t-vim.tex18
1 files changed, 15 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/context/third/vim/t-vim.tex b/Master/texmf-dist/tex/context/third/vim/t-vim.tex
index f2713a0af1b..372219324dd 100644
--- a/Master/texmf-dist/tex/context/third/vim/t-vim.tex
+++ b/Master/texmf-dist/tex/context/third/vim/t-vim.tex
@@ -1,12 +1,12 @@
%D \module
%D [ file=t-vim,
-%D version=2011.06.14,
+%D version=2011.08.10,
%D title=\CONTEXT\ User Module,
%D subtitle=Vim syntax highlighting,
%D author=Aditya Mahajan,
%D date=\currentdate,
%D copyright=Aditya Mahajan,
-%D email=adityam <at> umich <dot> edu,
+%D email=adityam <at> ieee <dot> org,
%D license=Simplified BSD License]
\writestatus{loading}{ConTeXt User Module / Vim syntax highlighting}
@@ -38,7 +38,7 @@
\stoptexdefinition
% Mode to testing the dev version of 2context script.
-\doifmodeelse{vimtest}
+\doifmodeelse{vim-dev}
{\def\vimtyping::script_name{2context.vim}}
{\def\vimtyping::script_name{kpse:2context.vim}}
@@ -53,11 +53,20 @@
-c "set syntax=\externalfilterparameter\c!syntax" %
-c "let contextstartline=\externalfilterparameter\c!start" %
-c "let contextstopline=\externalfilterparameter\c!stop" %
+ -c "let strip=\getvalue{\vimtyping::id-\c!strip-\externalfilterparameter\c!strip}" %
+ -c "let highlight=[\externalfilterparameter\c!highlight]" %
-c "source \vimtyping::script_name" %
-c "qa" %
\externalfilterinputfile\space
\externalfilteroutputfile}
+\setvalue{\vimtyping::id-\c!strip-\v!off}{0}
+\setvalue{\vimtyping::id-\c!strip-\v!on}{1}
+
+% Undocumented ... but useful if the user makes a mistake
+\setvalue{\vimtyping::id-\c!strip-\v!no}{0}
+\setvalue{\vimtyping::id-\c!strip-\v!yes}{1}
+
\setupvimtyping
[% \c!tab=4,
% \c!start=1,
@@ -68,6 +77,9 @@
% \c!after=,
% \c!style=\tttf,
% \c!color=,
+ \c!strip=\v!off,
+ \c!highlight=,
+ \c!highlightcolor=lightgray,
\c!filtercommand=\vimtyping::filter_command,
% \c!continue=yes,
% \c!read=\v!yes,