@@ -5774,6 +5774,9 @@ haslocaldir([{winnr} [, {tabnr}]]) *haslocaldir()*
57745774 " tab page m
57755775 :echo haslocaldir(-1, m)
57765776<
5777+ Can also be used as a | method | : >
5778+ GetWinnr()->haslocaldir()
5779+
57775780 hasmapto({what} [, {mode} [, {abbr} ]]) *hasmapto()*
57785781 The result is a Number, which is 1 if there is a mapping that
57795782 contains {what} in somewhere in the rhs (what it is mapped to)
@@ -5802,6 +5805,9 @@ hasmapto({what} [, {mode} [, {abbr}]]) *hasmapto()*
58025805< This installs the mapping to "\ABCdoit" only if there isn't
58035806 already a mapping to "\ABCdoit".
58045807
5808+ Can also be used as a | method | : >
5809+ GetRHS()->hasmapto()
5810+
58055811 histadd({history} , {item} ) *histadd()*
58065812 Add the String {item} to the history {history} which can be
58075813 one of: *hist-names*
@@ -5823,6 +5829,10 @@ histadd({history}, {item}) *histadd()*
58235829 :let date=input("Enter date: ")
58245830< This function is not available in the | sandbox | .
58255831
5832+ Can also be used as a | method | , the base is used for the
5833+ second argument: >
5834+ GetPattern()->histadd('search')
5835+
58265836 histdel({history} [, {item} ]) *histdel()*
58275837 Clear {history} , i.e. delete all its entries. See | hist-names |
58285838 for the possible values of {history} .
@@ -5854,6 +5864,9 @@ histdel({history} [, {item}]) *histdel()*
58545864 the "n" command and 'hlsearch' : >
58555865 :call histdel("search", -1)
58565866 :let @/ = histget("search", -1)
5867+ <
5868+ Can also be used as a | method | : >
5869+ GetHistory()->histdel()
58575870
58585871 histget({history} [, {index} ]) *histget()*
58595872 The result is a String, the entry with Number {index} from
@@ -5870,13 +5883,19 @@ histget({history} [, {index}]) *histget()*
58705883 the {num} th entry from the output of | :history | . >
58715884 :command -nargs=1 H execute histget("cmd", 0+<args>)
58725885<
5886+ Can also be used as a | method | : >
5887+ GetHistory()->histget()
5888+
58735889 histnr({history} ) *histnr()*
58745890 The result is the Number of the current entry in {history} .
58755891 See | hist-names | for the possible values of {history} .
58765892 If an error occurred, -1 is returned.
58775893
58785894 Example: >
58795895 :let inp_index = histnr("expr")
5896+
5897+ < Can also be used as a | method | : >
5898+ GetHistory()->histnr()
58805899<
58815900hlexists({name} ) *hlexists()*
58825901 The result is a Number, which is non-zero if a highlight group
@@ -5887,6 +5906,9 @@ hlexists({name}) *hlexists()*
58875906 *highlight_exists()*
58885907 Obsolete name: highlight_exists().
58895908
5909+ Can also be used as a | method | : >
5910+ GetName()->hlexists()
5911+ <
58905912 *hlID()*
58915913hlID({name} ) The result is a Number, which is the ID of the highlight group
58925914 with name {name} . When the highlight group doesn't exist,
@@ -5898,6 +5920,9 @@ hlID({name}) The result is a Number, which is the ID of the highlight group
58985920< *highlightID()*
58995921 Obsolete name: highlightID().
59005922
5923+ Can also be used as a | method | : >
5924+ GetName()->hlID()
5925+
59015926 hostname() *hostname()*
59025927 The result is a String, which is the name of the machine on
59035928 which Vim is currently running. Machine names greater than
@@ -5922,13 +5947,18 @@ iconv({expr}, {from}, {to}) *iconv()*
59225947 from/to UCS-2 is automatically changed to use UTF-8. You
59235948 cannot use UCS-2 in a string anyway, because of the NUL bytes.
59245949
5950+ Can also be used as a | method | : >
5951+ GetText()->iconv('latin1', 'utf-8')
5952+ <
59255953 *indent()*
59265954indent({lnum} ) The result is a Number, which is indent of line {lnum} in the
59275955 current buffer. The indent is counted in spaces, the value
59285956 of 'tabstop' is relevant. {lnum} is used just like in
59295957 | getline() | .
59305958 When {lnum} is invalid -1 is returned.
59315959
5960+ Can also be used as a | method | : >
5961+ GetLnum()->indent()
59325962
59335963 index({object} , {expr} [, {start} [, {ic} ]]) *index()*
59345964 If {object} is a | List | return the lowest index where the item
@@ -5949,6 +5979,8 @@ index({object}, {expr} [, {start} [, {ic}]]) *index()*
59495979 :let idx = index(words, "the")
59505980 :if index(numbers, 123) >= 0
59515981
5982+ < Can also be used as a | method | : >
5983+ GetObject()->index(what)
59525984
59535985 input({prompt} [, {text} [, {completion} ]]) *input()*
59545986 The result is a String, which is whatever the user typed on
@@ -5995,6 +6027,9 @@ input({prompt} [, {text} [, {completion}]]) *input()*
59956027 : call inputrestore()
59966028 :endfunction
59976029
6030+ < Can also be used as a | method | : >
6031+ GetPrompt()->input()
6032+
59986033 inputdialog({prompt} [, {text} [, {cancelreturn} ]]) *inputdialog()*
59996034 Like | input() | , but when the GUI is running and text dialogs
60006035 are supported, a dialog window pops up to input the text.
@@ -6009,6 +6044,9 @@ inputdialog({prompt} [, {text} [, {cancelreturn}]]) *inputdialog()*
60096044 <Esc> works like pressing the Cancel button.
60106045 NOTE: Command-line completion is not supported.
60116046
6047+ Can also be used as a | method | : >
6048+ GetPrompt()->inputdialog()
6049+
60126050 inputlist({textlist} ) *inputlist()*
60136051 {textlist} must be a | List | of strings. This | List | is
60146052 displayed, one string per line. The user will be prompted to
@@ -6025,6 +6063,9 @@ inputlist({textlist}) *inputlist()*
60256063 let color = inputlist(['Select color:', '1. red',
60266064 \ '2. green', '3. blue'])
60276065
6066+ < Can also be used as a | method | : >
6067+ GetChoices()->inputlist()
6068+
60286069 inputrestore() *inputrestore()*
60296070 Restore typeahead that was saved with a previous | inputsave() | .
60306071 Should be called the same number of times inputsave() is
@@ -6050,6 +6091,9 @@ inputsecret({prompt} [, {text}]) *inputsecret()*
60506091 typed on the command-line in response to the issued prompt.
60516092 NOTE: Command-line completion is not supported.
60526093
6094+ Can also be used as a | method | : >
6095+ GetPrompt()->inputsecret()
6096+
60536097 insert({object} , {item} [, {idx} ]) *insert()*
60546098 When {object} is a | List | or a | Blob | insert {item} at the start
60556099 of it.
@@ -6083,6 +6127,9 @@ isdirectory({directory}) *isdirectory()*
60836127 exist, or isn't a directory, the result is | FALSE | . {directory}
60846128 is any expression, which is used as a String.
60856129
6130+ Can also be used as a | method | : >
6131+ GetName()->isdirectory()
6132+
60866133 isinf({expr} ) *isinf()*
60876134 Return 1 if {expr} is a positive infinity, or -1 a negative
60886135 infinity, otherwise 0. >
@@ -6109,6 +6156,9 @@ islocked({expr}) *islocked()* *E786*
61096156< When {expr} is a variable that does not exist you get an error
61106157 message. Use | exists() | to check for existence.
61116158
6159+ Can also be used as a | method | : >
6160+ GetName()->islocked()
6161+
61126162 isnan({expr} ) *isnan()*
61136163 Return | TRUE | if {expr} is a float with value NaN. >
61146164 echo isnan(0.0 / 0.0)
0 commit comments