From 4d401c525d61b9b3c1523cfc58d9f6b5e94f6cfa Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 15 May 2015 21:48:27 +0000 Subject: context-vim (15may15) git-svn-id: svn://tug.org/texlive/trunk@37413 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/context/third/vim/vim.txt | 29 ++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'Master/texmf-dist/doc/context/third') diff --git a/Master/texmf-dist/doc/context/third/vim/vim.txt b/Master/texmf-dist/doc/context/third/vim/vim.txt index 5079c3058a1..660c208f176 100644 --- a/Master/texmf-dist/doc/context/third/vim/vim.txt +++ b/Master/texmf-dist/doc/context/third/vim/vim.txt @@ -374,7 +374,9 @@ where `` is a valid TeX dimension. Wrapping lines --------------- -By default, long lines are not wrapped. If you want to wrap long lines, set +By default, long lines are not wrapped. If your source code has long lines, +there are two alternatives. First, you can allow the lines to break at spaces by +setting \definevimtyping [...] @@ -384,6 +386,31 @@ By default, long lines are not wrapped. If you want to wrap long lines, set The default value is `lines=fixed`. +Second, you can allow lines to break between _compound_ words, such as +`long/path`, `long-path`, `long+path`, etc by setting + + \definevimtyping + [...] + [... + option={packed,hyphenated}, + ...] + +The default value of `option` is `packed`. + +Note that with both these alternatives do not hyphenate a word, merely break +lines at spaces or at the boundary of compound words. If you really need to +hyphenate words, use + + \definevimtyping + [...] + [... + option={packed,hyphenated}, + align=hyphenated, + ...] + +Note that you have to add **both** `option=hyphenated` and `align=hyphenated`. +The default value of align is `nothypenated`. + Highlighting lines ------------------ -- cgit v1.2.3