Fix docs for new editor replacements

See #3100
This commit is contained in:
Florian Bruhin 2017-11-02 19:29:49 +01:00
parent c0eae5d4e4
commit 5469a238de
2 changed files with 16 additions and 4 deletions

View File

@ -1961,9 +1961,7 @@ Default: +pass:[-1]+
[[editor.command]]
=== editor.command
The editor (and arguments) to use for the `open-editor` command.
Several placeholders are supported. Placeholders are substituted by the
respective value when executing the command.
Several placeholders are supported. Placeholders are substituted by the respective value when executing the command.
`{file}` gets replaced by the filename of the file to be edited.
`{line}` gets replaced by the line in which the caret is found in the text.
`{column}` gets replaced by the column in which the caret is found in the text.
@ -1976,7 +1974,9 @@ Default:
- +pass:[gvim]+
- +pass:[-f]+
- +pass:[{}]+
- +pass:[{file}]+
- +pass:[-c]+
- +pass:[normal {line}G{column0}l]+
[[editor.encoding]]
=== editor.encoding

View File

@ -770,8 +770,20 @@ editor.command:
desc: >-
The editor (and arguments) to use for the `open-editor` command.
Several placeholders are supported. Placeholders are substituted by the
respective value when executing the command.
`{file}` gets replaced by the filename of the file to be edited.
`{line}` gets replaced by the line in which the caret is found in the text.
`{column}` gets replaced by the column in which the caret is found in the text.
`{line0}` same as `{line}`, but starting from index 0.
`{column0}` same as `{column}`, but starting from index 0.
editor.encoding:
type: Encoding
default: utf-8