From 2038d0a63142b83600256230a480cfc39a984c63 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 9 Jan 2012 22:40:21 +0000 Subject: context-vim (9jan12) git-svn-id: svn://tug.org/texlive/trunk@25062 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/context/third/vim/vim.txt | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/doc/context') diff --git a/Master/texmf-dist/doc/context/third/vim/vim.txt b/Master/texmf-dist/doc/context/third/vim/vim.txt index 2153621d943..8bdf5ea0afb 100644 --- a/Master/texmf-dist/doc/context/third/vim/vim.txt +++ b/Master/texmf-dist/doc/context/third/vim/vim.txt @@ -388,10 +388,23 @@ highlight color use where `` is any valid ConTeXt color. -**Note**: Currently, if you use `highlight` with `numbering=on`, each -highlighted line will be numbered thrice (with the numbers overprinted on one -another). This is because, internally, highlighting is implemented using text -backgrounds and they do not work with line numbering. +When you pass a comma list to `highlight`, the `2context.vim` script +wraps **each** of those line around `\HGL{....}` macro. The `\HGL` is, in turn, set to the +value of `highlightcommand` key. So, if you want to change the way highlighting +works, change the `highlightcommand`: + + \definevimtyping + [...] + [... + highlightcommand=, + ...] + +where `` is any valid ConTeXt command. The default value is +`highlightcommand` is `\syntaxhighlightline`; in MkIV, `\syntaxhighlightline` is +defined as a bar; in MkII, `\syntaxhighlightline` is defined as a text +background. The bar mechanism is more efficient but both mechanisms behave +differently. The text background starts from the left edge of the line, while +the bar starts from the first non-blank character. Using TeX code in Comments -------------------------- -- cgit v1.2.3