diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-06-24 13:47:10 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2023-06-25 17:14:28 +0200 |
commit | 036da0d07921e67090d1a62c9a4e382ca09d8584 (patch) | |
tree | cd5326a81fe031c24b41a8cb524126a9ddb76e06 /runtime/doc/builtin.txt | |
parent | 3688735c2b63337ab8d8b12ac08b4e6e064e98a2 (diff) | |
download | rneovim-036da0d07921e67090d1a62c9a4e382ca09d8584.tar.gz rneovim-036da0d07921e67090d1a62c9a4e382ca09d8584.tar.bz2 rneovim-036da0d07921e67090d1a62c9a4e382ca09d8584.zip |
fix(docs): vimdoc syntax errors
gen_help_html: truncate parse-error sample text
Diffstat (limited to 'runtime/doc/builtin.txt')
-rw-r--r-- | runtime/doc/builtin.txt | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 1989475164..1cbc9135d3 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1939,7 +1939,7 @@ exists({expr}) The result is a Number, which is |TRUE| if {expr} is $ENVNAME environment variable (could also be done by comparing with an empty string) - *funcname built-in function (see |functions|) + `*funcname` built-in function (see |functions|) or user defined function (see |user-function|). Also works for a variable that is a Funcref. @@ -3019,7 +3019,7 @@ getcmdtype() *getcmdtype()* / forward search command ? backward search command @ |input()| command - - |:insert| or |:append| command + `-` |:insert| or |:append| command = |i_CTRL-R_=| Only works when editing the command line, thus requires use of |c_CTRL-\_e| or |c_CTRL-R_=| or an expression mapping. @@ -3364,20 +3364,26 @@ getmatches([{win}]) *getmatches()* If {win} is specified, use the window with this number or window ID instead of the current window. If {win} is invalid, an empty list is returned. - Example: > + Example: >vim :echo getmatches() -< [{"group": "MyGroup1", "pattern": "TODO", +> + [{"group": "MyGroup1", "pattern": "TODO", "priority": 10, "id": 1}, {"group": "MyGroup2", - "pattern": "FIXME", "priority": 10, "id": 2}] > + "pattern": "FIXME", "priority": 10, "id": 2}] +>vim :let m = getmatches() :call clearmatches() :echo getmatches() -< [] > +> + [] +>vim :call setmatches(m) :echo getmatches() -< [{"group": "MyGroup1", "pattern": "TODO", +> + [{"group": "MyGroup1", "pattern": "TODO", "priority": 10, "id": 1}, {"group": "MyGroup2", - "pattern": "FIXME", "priority": 10, "id": 2}] > + "pattern": "FIXME", "priority": 10, "id": 2}] +>vim :unlet m < getmousepos() *getmousepos()* @@ -8268,7 +8274,7 @@ string({expr}) Return {expr} converted to a String. If {expr} is a Number, Funcref `function('name')` Blob 0z00112233.44556677.8899 List [item, item] - Dictionary {key: value, key: value} + Dictionary `{key: value, key: value}` Note that in String values the ' character is doubled. Also see |strtrans()|. Note 2: Output format is mostly compatible with YAML, except |