@@ -9254,6 +9254,9 @@ soundfold({word})
9254
9254
This can be used for making spelling suggestions. Note that
9255
9255
the method can be quite slow.
9256
9256
9257
+
Can also be used as a |method|: >
9258
+
GetWord()->soundfold()
9259
+
<
9257
9260
*spellbadword()*
9258
9261
spellbadword([{sentence}])
9259
9262
Without argument: The result is the badly spelled word under
@@ -9279,6 +9282,9 @@ spellbadword([{sentence}])
9279
9282
The spelling information for the current window and the value
9280
9283
of 'spelllang' are used.
9281
9284
9285
+
Can also be used as a |method|: >
9286
+
GetText()->spellbadword()
9287
+
<
9282
9288
*spellsuggest()*
9283
9289
spellsuggest({word} [, {max} [, {capital}]])
9284
9290
Return a |List| with spelling suggestions to replace {word}.
@@ -9301,6 +9307,8 @@ spellsuggest({word} [, {max} [, {capital}]])
9301
9307
The spelling information for the current window is used. The
9302
9308
values of 'spelllang' and 'spellsuggest' are used.
9303
9309
9310
+
Can also be used as a |method|: >
9311
+
GetWord()->spellsuggest()
9304
9312
9305
9313
split({string} [, {pattern} [, {keepempty}]]) *split()*
9306
9314
Make a |List| out of {string}. When {pattern} is omitted or
@@ -9432,6 +9440,20 @@ str2nr({string} [, {base}]) *str2nr()*
9432
9440
{base} is 2 a leading "0b" or "0B" is ignored.
9433
9441
Text after the number is silently ignored.
9434
9442
9443
+
Can also be used as a |method|: >
9444
+
GetText()->str2nr()
9445
+
9446
+
strcharpart({src}, {start} [, {len}]) *strcharpart()*
9447
+
Like |strpart()| but using character index and length instead
9448
+
of byte index and length. Composing characters are counted
9449
+
separately.
9450
+
When a character index is used where a character does not
9451
+
exist it is assumed to be one character. For example: >
9452
+
strcharpart('abc', -1, 2)
9453
+
< results in 'a'.
9454
+
9455
+
Can also be used as a |method|: >
9456
+
GetText()->strcharpart(5)
9435
9457
9436
9458
strchars({string} [, {skipcc}]) *strchars()*
9437
9459
The result is a Number, which is the number of characters
@@ -9457,14 +9479,8 @@ strchars({string} [, {skipcc}]) *strchars()*
9457
9479
endfunction
9458
9480
endif
9459
9481
<
9460
-
strcharpart({src}, {start} [, {len}]) *strcharpart()*
9461
-
Like |strpart()| but using character index and length instead
9462
-
of byte index and length. Composing characters are counted
9463
-
separately.
9464
-
When a character index is used where a character does not
9465
-
exist it is assumed to be one character. For example: >
9466
-
strcharpart('abc', -1, 2)
9467
-
< results in 'a'.
9482
+
Can also be used as a |method|: >
9483
+
GetText()->strchars()
9468
9484
9469
9485
strdisplaywidth({string} [, {col}]) *strdisplaywidth()*
9470
9486
The result is a Number, which is the number of display cells
@@ -9479,6 +9495,9 @@ strdisplaywidth({string} [, {col}]) *strdisplaywidth()*
9479
9495
Ambiguous, this function's return value depends on 'ambiwidth'.
9480
9496
Also see |strlen()|, |strwidth()| and |strchars()|.
9481
9497
9498
+
Can also be used as a |method|: >
9499
+
GetText()->strdisplaywidth()
9500
+
9482
9501
strftime({format} [, {time}]) *strftime()*
9483
9502
The result is a String, which is a formatted date and time, as
9484
9503
specified by the {format} string. The given {time} is used,
@@ -9496,12 +9515,18 @@ strftime({format} [, {time}]) *strftime()*
9496
9515
:echo strftime("%c", getftime("file.c"))
9497
9516
Show mod time of file.c.
9498
9517
9518
+
< Can also be used as a |method|: >
9519
+
GetFormat()->strftime()
9520
+
9499
9521
strgetchar({str}, {index}) *strgetchar()*
9500
9522
Get character {index} from {str}. This uses a character
9501
9523
index, not a byte index. Composing characters are considered
9502
9524
separate characters here.
9503
9525
Also see |strcharpart()| and |strchars()|.
9504
9526
9527
+
Can also be used as a |method|: >
9528
+
GetText()->strgetchar(5)
9529
+
9505
9530
stridx({haystack}, {needle} [, {start}]) *stridx()*
9506
9531
The result is a Number, which gives the byte index in
9507
9532
{haystack} of the first occurrence of the String {needle}.
@@ -9521,6 +9546,9 @@ stridx({haystack}, {needle} [, {start}]) *stridx()*
9521
9546
stridx() works similar to the C function strstr(). When used
9522
9547
with a single character it works similar to strchr().
9523
9548
9549
+
Can also be used as a |method|: >
9550
+
GetHaystack()->stridx(needle)
9551
+
9524
9552
*string()*
9525
9553
string({expr}) Return {expr} converted to a String. If {expr} is a Number,
9526
9554
Float, String, Blob or a composition of them, then the result
@@ -9583,6 +9611,9 @@ strpart({src}, {start} [, {len} [, {chars}]]) *strpart()*
9583
9611
example, to get the character under the cursor: >
9584
9612
strpart(getline("."), col(".") - 1, 1, v:true)
9585
9613
<
9614
+
Can also be used as a |method|: >
9615
+
GetText()->strpart(5)
9616
+
9586
9617
strptime({format}, {timestring}) *strptime()*
9587
9618
The result is a Number, which is a unix timestamp representing
9588
9619
the date and time in {timestring}, which is expected to match
@@ -9626,6 +9657,9 @@ strridx({haystack}, {needle} [, {start}]) *strridx()*
9626
9657
When used with a single character it works similar to the C
9627
9658
function strrchr().
9628
9659
9660
+
Can also be used as a |method|: >
9661
+
GetHaystack()->strridx(needle)
9662
+
9629
9663
strtrans({string}) *strtrans()*
9630
9664
The result is a String, which is {string} with all unprintable
9631
9665
characters translated into printable characters |'isprint'|.
@@ -9674,6 +9708,9 @@ submatch({nr} [, {list}]) *submatch()* *E935*
9674
9708
< This finds the first number in the line and adds one to it.
9675
9709
A line break is included as a newline character.
9676
9710
9711
+
Can also be used as a |method|: >
9712
+
GetNr()->submatch()
9713
+
9677
9714
substitute({string}, {pat}, {sub}, {flags}) *substitute()*
9678
9715
The result is a String, which is a copy of {string}, in which
9679
9716
the first match of {pat} is replaced with {sub}.
@@ -9736,13 +9773,19 @@ swapinfo({fname}) *swapinfo()*
9736
9773
Not a swap file: does not contain correct block ID
9737
9774
Magic number mismatch: Info in first block is invalid
9738
9775
9776
+
Can also be used as a |method|: >
9777
+
GetFilename()->swapinfo()
9778
+
9739
9779
swapname({buf}) *swapname()*
9740
9780
The result is the swap file path of the buffer {buf}.
9741
9781
For the use of {buf}, see |bufname()| above.
9742
9782
If buffer {buf} is the current buffer, the result is equal to
9743
9783
|:swapname| (unless there is no swap file).
9744
9784
If buffer {buf} has no swap file, returns an empty string.
9745
9785
9786
+
Can also be used as a |method|: >
9787
+
GetBufname()->swapname()
9788
+
9746
9789
synID({lnum}, {col}, {trans}) *synID()*
9747
9790
The result is a Number, which is the syntax ID at the position
9748
9791
{lnum} and {col} in the current window.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4