@@ -6699,6 +6699,8 @@ maparg({name} [, {mode} [, {abbr} [, {dict}]]]) *maparg()*
66996699 mapped, and have it do the original mapping too. Sketch: >
67006700 exe 'nnoremap <Tab> ==' . maparg('<Tab>', 'n')
67016701
6702+ < Can also be used as a | method | : >
6703+ GetKey()->maparg('n')
67026704
67036705 mapcheck({name} [, {mode} [, {abbr} ]]) *mapcheck()*
67046706 Check if there is a mapping that matches with {name} in mode
@@ -6733,6 +6735,9 @@ mapcheck({name} [, {mode} [, {abbr}]]) *mapcheck()*
67336735< This avoids adding the "_vv" mapping when there already is a
67346736 mapping for "_v" or for "_vvv".
67356737
6738+ Can also be used as a | method | : >
6739+ GetKey()->mapcheck('n')
6740+
67366741 match({expr} , {pat} [, {start} [, {count} ]]) *match()*
67376742 When {expr} is a | List | then this returns the index of the
67386743 first item where {pat} matches. Each item is used as a
@@ -6791,6 +6796,9 @@ match({expr}, {pat} [, {start} [, {count}]]) *match()*
67916796 the pattern. 'smartcase' is NOT used. The matching is always
67926797 done like 'magic' is set and 'cpoptions' is empty.
67936798
6799+ Can also be used as a | method | : >
6800+ GetList()->match('word')
6801+ <
67946802 *matchadd()* *E798* *E799* *E801* *E957*
67956803matchadd({group} , {pattern} [, {priority} [, {id} [, {dict} ]]])
67966804 Defines a pattern to be highlighted in the current window (a
@@ -6846,6 +6854,9 @@ matchadd({group}, {pattern} [, {priority} [, {id} [, {dict}]]])
68466854 available from | getmatches() | . All matches can be deleted in
68476855 one operation by | clearmatches() | .
68486856
6857+ Can also be used as a | method | : >
6858+ GetGroup()->matchadd('TODO')
6859+ <
68496860 *matchaddpos()*
68506861matchaddpos({group} , {pos} [, {priority} [, {id} [, {dict} ]]])
68516862 Same as | matchadd() | , but requires a list of positions {pos}
@@ -6880,6 +6891,9 @@ matchaddpos({group}, {pos} [, {priority} [, {id} [, {dict}]]])
68806891 | getmatches() | with an entry "pos1", "pos2", etc., with the
68816892 value a list like the {pos} item.
68826893
6894+ Can also be used as a | method | : >
6895+ GetGroup()->matchaddpos([23, 11])
6896+
68836897 matcharg({nr} ) *matcharg()*
68846898 Selects the {nr} match item, as set with a | :match | ,
68856899 | :2match | or | :3match | command.
@@ -6892,6 +6906,9 @@ matcharg({nr}) *matcharg()*
68926906 Highlighting matches using the | :match | commands are limited
68936907 to three matches. | matchadd() | does not have this limitation.
68946908
6909+ Can also be used as a | method | : >
6910+ GetMatch()->matcharg()
6911+
68956912 matchdelete({id} [, {win} ) *matchdelete()* *E802* *E803*
68966913 Deletes a match with ID {id} previously defined by | matchadd() |
68976914 or one of the | :match | commands. Returns 0 if successful,
@@ -6900,6 +6917,9 @@ matchdelete({id} [, {win}) *matchdelete()* *E802* *E803*
69006917 If {win} is specified, use the window with this number or
69016918 window ID instead of the current window.
69026919
6920+ Can also be used as a | method | : >
6921+ GetMatch()->matchdelete()
6922+
69036923 matchend({expr} , {pat} [, {start} [, {count} ]]) *matchend()*
69046924 Same as | match() | , but return the index of first character
69056925 after the match. Example: >
@@ -6919,6 +6939,9 @@ matchend({expr}, {pat} [, {start} [, {count}]]) *matchend()*
69196939< result is "-1".
69206940 When {expr} is a | List | the result is equal to | match() | .
69216941
6942+ Can also be used as a | method | : >
6943+ GetText()->matchend('word')
6944+
69226945 matchlist({expr} , {pat} [, {start} [, {count} ]]) *matchlist()*
69236946 Same as | match() | , but return a | List | . The first item in the
69246947 list is the matched string, same as what matchstr() would
@@ -6929,6 +6952,9 @@ matchlist({expr}, {pat} [, {start} [, {count}]]) *matchlist()*
69296952< Results in: ['acd' , 'a', '', 'c', 'd', '', '', '', '', '']
69306953 When there is no match an empty list is returned.
69316954
6955+ Can also be used as a | method | : >
6956+ GetList()->matchlist('word')
6957+
69326958 matchstr({expr} , {pat} [, {start} [, {count} ]]) *matchstr()*
69336959 Same as | match() | , but return the matched string. Example: >
69346960 :echo matchstr("testing", "ing")
@@ -6942,6 +6968,9 @@ matchstr({expr}, {pat} [, {start} [, {count}]]) *matchstr()*
69426968 When {expr} is a | List | then the matching item is returned.
69436969 The type isn't changed, it's not necessarily a String.
69446970
6971+ Can also be used as a | method | : >
6972+ GetText()->matchstr('word')
6973+
69456974 matchstrpos({expr} , {pat} [, {start} [, {count} ]]) *matchstrpos()*
69466975 Same as | matchstr() | , but return the matched string, the start
69476976 position and the end position of the match. Example: >
@@ -6960,6 +6989,8 @@ matchstrpos({expr}, {pat} [, {start} [, {count}]]) *matchstrpos()*
69606989< result is ["x", 1, 2, 3].
69616990 The type isn't changed, it's not necessarily a String.
69626991
6992+ Can also be used as a | method | : >
6993+ GetText()->matchstrpos('word')
69636994 *max()*
69646995 max({expr} ) Return the maximum value of all items in {expr} .
69656996 {expr} can be a list or a dictionary. For a dictionary,
@@ -7010,6 +7041,9 @@ mkdir({name} [, {path} [, {prot}]])
70107041
70117042 Not available on all systems. To check use: >
70127043 :if exists("*mkdir")
7044+
7045+ < Can also be used as a | method | : >
7046+ GetName()->mkdir()
70137047<
70147048 *mode()*
70157049mode([expr]) Return a string that indicates the current mode.
@@ -7055,6 +7089,9 @@ mode([expr]) Return a string that indicates the current mode.
70557089 the leading character(s).
70567090 Also see | visualmode() | .
70577091
7092+ Can also be used as a | method | : >
7093+ DoFull()->mode()
7094+
70587095 mzeval({expr} ) *mzeval()*
70597096 Evaluate MzScheme expression {expr} and return its result
70607097 converted to Vim data structures.
@@ -7069,6 +7106,9 @@ mzeval({expr}) *mzeval()*
70697106 :mz (define h (make-hash)) (hash-set! h "list" l)
70707107 :echo mzeval("l")
70717108 :echo mzeval("h")
7109+ <
7110+ Can also be used as a | method | : >
7111+ GetExpr()->mzeval()
70727112<
70737113 {only available when compiled with the | +mzscheme | feature}
70747114
0 commit comments