@@ -3575,9 +3575,10 @@ count({comp}, {expr} [, {ic} [, {start}]]) *count()*
35753575 When {comp} is a string then the number of not overlapping
35763576 occurrences of {expr} is returned. Zero is returned when
35773577 {expr} is an empty string.
3578+
35783579 Can also be used as a | method | : >
35793580 mylist->count(val)
3580-
3581+ <
35813582 *cscope_connection()*
35823583cscope_connection([{num} , {dbpath} [, {prepend} ]])
35833584 Checks for the existence of a | cscope | connection. If no
@@ -5408,6 +5409,9 @@ has_key({dict}, {key}) *has_key()*
54085409 The result is a Number, which is 1 if | Dictionary | {dict} has
54095410 an entry with key {key} . Zero otherwise.
54105411
5412+ Can also be used as a | method | : >
5413+ mydict->has_key(key)
5414+
54115415 haslocaldir([{winnr} [, {tabnr} ]]) *haslocaldir()*
54125416 The result is a Number:
54135417 1 when the window has set a local directory via | :lcd |
@@ -8294,6 +8298,8 @@ split({expr} [, {pattern} [, {keepempty}]]) *split()*
82948298 :let items = split(line, ':', 1)
82958299< The opposite function is | join() | .
82968300
8301+ Can also be used as a | method | : >
8302+ GetString()->split()
82978303
82988304 sqrt({expr} ) *sqrt()*
82998305 Return the non-negative square root of Float {expr} as a
@@ -8337,12 +8343,19 @@ str2list({expr} [, {utf8}]) *str2list()*
83378343 properly: >
83388344 str2list("á") returns [97, 769]
83398345
8346+ < Can also be used as a | method | : >
8347+ GetString()->str2list()
8348+
8349+
83408350 str2nr({expr} [, {base} ]) *str2nr()*
83418351 Convert string {expr} to a number.
83428352 {base} is the conversion base, it can be 2, 8, 10 or 16.
8353+
83438354 When {base} is omitted base 10 is used. This also means that
83448355 a leading zero doesn't cause octal conversion to be used, as
8345- with the default String to Number conversion.
8356+ with the default String to Number conversion. Example: >
8357+ let nr = str2nr('123')
8358+ <
83468359 When {base} is 16 a leading "0x" or "0X" is ignored. With a
83478360 different base the result will be zero. Similarly, when
83488361 {base} is 8 a leading "0" is ignored, and when {base} is 2 a
@@ -8470,6 +8483,9 @@ strlen({expr}) The result is a Number, which is the length of the String
84708483 | strchars() | .
84718484 Also see | len() | , | strdisplaywidth() | and | strwidth() | .
84728485
8486+ Can also be used as a | method | : >
8487+ GetString()->strlen()
8488+
84738489 strpart({src} , {start} [, {len} ]) *strpart()*
84748490 The result is a String, which is part of {src} , starting from
84758491 byte {start} , with the byte length {len} .
@@ -8514,6 +8530,9 @@ strtrans({expr}) *strtrans()*
85148530< This displays a newline in register a as "^@" instead of
85158531 starting a new line.
85168532
8533+ Can also be used as a | method | : >
8534+ GetString()->strtrans()
8535+
85178536 strwidth({expr} ) *strwidth()*
85188537 The result is a Number, which is the number of display cells
85198538 String {expr} occupies. A Tab character is counted as one
@@ -8522,6 +8541,9 @@ strwidth({expr}) *strwidth()*
85228541 Ambiguous, this function's return value depends on 'ambiwidth' .
85238542 Also see | strlen() | , | strdisplaywidth() | and | strchars() | .
85248543
8544+ Can also be used as a | method | : >
8545+ GetString()->strwidth()
8546+
85258547 submatch({nr} [, {list} ]) *submatch()* *E935*
85268548 Only for an expression in a | :substitute | command or
85278549 substitute() function.
@@ -8589,6 +8611,9 @@ substitute({expr}, {pat}, {sub}, {flags}) *substitute()*
85898611 | submatch() | returns. Example: >
85908612 :echo substitute(s, '%\(\x\x\)', {m -> '0x' . m[1]}, 'g')
85918613
8614+ < Can also be used as a | method | : >
8615+ GetString()->substitute(pat, sub, flags)
8616+
85928617 swapinfo({fname} ) *swapinfo()*
85938618 The result is a dictionary, which holds information about the
85948619 swapfile {fname} . The available fields are:
@@ -8674,12 +8699,19 @@ synIDattr({synID}, {what} [, {mode}]) *synIDattr()*
86748699 cursor): >
86758700 :echo synIDattr(synIDtrans(synID(line("."), col("."), 1)), "fg")
86768701<
8702+ Can also be used as a | method | : >
8703+ :echo synID(line("."), col("."), 1)->synIDtrans()->synIDattr("fg")
8704+
8705+
86778706 synIDtrans({synID} ) *synIDtrans()*
86788707 The result is a Number, which is the translated syntax ID of
86798708 {synID} . This is the syntax group ID of what is being used to
86808709 highlight the character. Highlight links given with
86818710 ":highlight link" are followed.
86828711
8712+ Can also be used as a | method | : >
8713+ :echo synID(line("."), col("."), 1)->synIDtrans()->synIDattr("fg")
8714+
86838715 synconcealed({lnum} , {col} ) *synconcealed()*
86848716 The result is a List with currently three items:
86858717 1. The first item in the list is 0 if the character at the
@@ -8784,6 +8816,9 @@ system({expr} [, {input}]) *system()* *E677*
87848816 Unlike ":!cmd" there is no automatic check for changed files.
87858817 Use | :checktime | to force a check.
87868818
8819+ Can also be used as a | method | : >
8820+ :echo GetCmd()->system()
8821+
87878822
87888823 systemlist({expr} [, {input} ]) *systemlist()*
87898824 Same as | system() | , but returns a | List | with lines (parts of
@@ -8794,6 +8829,9 @@ systemlist({expr} [, {input}]) *systemlist()*
87948829
87958830 Returns an empty string on error.
87968831
8832+ Can also be used as a | method | : >
8833+ :echo GetCmd()->systemlist()
8834+
87978835
87988836 tabpagebuflist([{arg} ]) *tabpagebuflist()*
87998837 The result is a | List | , where each item is the number of the
0 commit comments