summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/context/third
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-05-15 21:48:27 +0000
committerKarl Berry <karl@freefriends.org>2015-05-15 21:48:27 +0000
commit4d401c525d61b9b3c1523cfc58d9f6b5e94f6cfa (patch)
treee3aab162c3c5cab53d70148a294fec2cb44f5838 /Master/texmf-dist/doc/context/third
parenta548ec3bc5488db7ddf39fe5192cd080f5f85374 (diff)
context-vim (15may15)
git-svn-id: svn://tug.org/texlive/trunk@37413 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/context/third')
-rw-r--r--Master/texmf-dist/doc/context/third/vim/vim.txt29
1 files changed, 28 insertions, 1 deletions
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 `<dimen>` 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
------------------