diff options
author | Karl Berry <karl@freefriends.org> | 2012-08-12 21:26:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-08-12 21:26:33 +0000 |
commit | b85c86f188387b89e8bc9c5e596af5c974e0dd06 (patch) | |
tree | aa13063542c19a2cc46bde5ba3d9f836a35c56da /Master | |
parent | 3e547890456317029a22cd3b906447bcccaa1232 (diff) |
context-vim (12aug12)
git-svn-id: svn://tug.org/texlive/trunk@27374 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/context/third/vim/vim.txt | 18 | ||||
-rw-r--r-- | Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv | 7 |
2 files changed, 23 insertions, 2 deletions
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 `<vimtyping>` 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=<dimen>, + ...] + +where `<dimen>` 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 <at> ieee <dot> 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,
|