summaryrefslogtreecommitdiff
path: root/macros/context/contrib/context-vim/doc/context/third/vim/vim.txt
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-12-15 03:01:18 +0000
committerNorbert Preining <norbert@preining.info>2021-12-15 03:01:18 +0000
commit0efaa39c6d0b17b58df9a68ae1319ea20aaabc28 (patch)
tree677b276738cd1c52e8778f985da1705c64a4b729 /macros/context/contrib/context-vim/doc/context/third/vim/vim.txt
parent829614e28f2055883ff74da11eb4e5e57d199be3 (diff)
CTAN sync 202112150301
Diffstat (limited to 'macros/context/contrib/context-vim/doc/context/third/vim/vim.txt')
-rw-r--r--macros/context/contrib/context-vim/doc/context/third/vim/vim.txt18
1 files changed, 15 insertions, 3 deletions
diff --git a/macros/context/contrib/context-vim/doc/context/third/vim/vim.txt b/macros/context/contrib/context-vim/doc/context/third/vim/vim.txt
index e42a2bdab8..af6bfdb74a 100644
--- a/macros/context/contrib/context-vim/doc/context/third/vim/vim.txt
+++ b/macros/context/contrib/context-vim/doc/context/third/vim/vim.txt
@@ -315,8 +315,9 @@ will effect all the listings on that page, _even those defined earlier!_
- To change the width of the box in which the numbers are typeset, use
`numberwidth=...` option. Default value is `2em`.
-- To change the distance between the numbers and the rest of the code, use
- `numberdistance=...` option. Default value is `0.5em`.
+- By default, the numbers are placed on the left of the text area. To change
+ the distance between the numbers and the text area, use `numberdistance=...`
+ option. Default value is `0.5em`.
- To change the conversion of numbers, use `numberconversion=...` option.
Default value is `numbers`.
@@ -411,8 +412,19 @@ of each line:
margin=<dimen>,
...]
-where `<dimen>` is a valid TeX dimension.
+where `<dimen>` is a valid TeX dimension. Note that this does not change the
+location of the line numbers. So, if you are using line numbers along with
+margin, also change the `numberdistance`. For example,
+
+ \definevimtyping
+ [...]
+ [...
+ margin=4em,
+ numberdistance=-3.5em,
+ ...]
+
+will place the numbers `4em - 3.5em = 0.5em` to the left of the code.