From b85c86f188387b89e8bc9c5e596af5c974e0dd06 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 12 Aug 2012 21:26:33 +0000 Subject: context-vim (12aug12) git-svn-id: svn://tug.org/texlive/trunk@27374 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/context/third/vim/vim.txt | 18 ++++++++++++++++++ .../tex/context/third/vim/t-syntax-highlight.mkiv | 7 +++++-- 2 files changed, 23 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/context/third/vim/vim.txt b/Master/texmf-dist/doc/context/third/vim/vim.txt index fe2f115bc90..5079c3058a1 100644 --- a/Master/texmf-dist/doc/context/third/vim/vim.txt +++ b/Master/texmf-dist/doc/context/third/vim/vim.txt @@ -353,6 +353,24 @@ set The default value of `strip` is `no`. +Adding left margin +------------------ + +By default, a `` environment resets the left skip to `0pt`, so each +line is aligned to the left edge. Use the `margin` key to change the left skip +of each line: + + \definevimtyping + [...] + [... + margin=, + ...] + +where `` is a valid TeX dimension. + + + + Wrapping lines --------------- diff --git a/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv b/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv index caf5d56a6fd..a9888bffffc 100644 --- a/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv +++ b/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv @@ -1,6 +1,6 @@ %D \module %D [ file=t-syntax-highlight, -%D version=2012.06.09, +%D version=2012.08.01, %D title=\CONTEXT\ User Module, %D subtitle=Code syntax highlighting, %D author=Aditya Mahajan, @@ -9,7 +9,7 @@ %D email=adityam ieee org, %D license=Simplified BSD License] -\writestatus{loading}{Code syntax highlighting (ver: 2012.06.09)} +\writestatus{loading}{Code syntax highlighting (ver: 2012.08.01)} \startmodule [syntax-highlight] \usemodule [syntax-groups] @@ -89,6 +89,8 @@ \doifinset{\externalfilterparameter\c!option}{\v!packed} {\setupwhitespace[\v!none,\v!flexible]}% + \doadaptleftskip{\externalfilterparameter\c!margin}% + \doifnotinset{\externalfilterparameter\c!option}{\v!hyphenated} {\language\minusone}% @@ -141,6 +143,7 @@ [\c!tab=4, \c!space=\v!off, \c!lines=\v!fixed, + \c!margin=\zeropoint, \c!start=1, \c!stop=0, % \c!syntax=context, -- cgit v1.2.3