Skip to content

Commit 9f46ad0

Browse files
committed
Update usr_41.{txt,jax}
1 parent 77aa561 commit 9f46ad0

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

doc/usr_41.jax

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_41.txt* For Vim バージョン 9.1. Last change: 2025 Jul 21
1+
*usr_41.txt* For Vim バージョン 9.1. Last change: 2025 Aug 10
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -720,7 +720,7 @@ substitute() の呼び出しの前後にいろいろな処理を入れたりす
720720
str2list() 文字列から数値のリストを得る
721721
str2nr() 文字列を数値に変換する
722722
str2float() 文字列を浮動小数点数に変換する
723-
printf() 書式付き文字列を整形する
723+
printf() "%" 項目に従って文字列を整形する
724724
escape() 文字列の特定の文字を '\' でエスケープ
725725
shellescape() シェルコマンドで使えるように文字列をエスケープ
726726
fnameescape() Vim コマンド用にファイル名をエスケープ
@@ -805,9 +805,8 @@ substitute() の呼び出しの前後にいろいろな処理を入れたりす
805805
range() 数列リストを返す
806806
string() リストの文字列表現
807807
call() リストを引数として関数を呼ぶ
808-
index() リストあるいは Blob 中の要素のインデックス
809-
indexof() リストあるいは Blob で式の評価が真となった位置
810-
のインデックス
808+
index() リスト中の要素のインデックス
809+
indexof() 式が真となるリスト内のインデックス
811810
max() リスト中の最大値
812811
min() リスト中の最小値
813812
count() ある要素がリスト中に出現する回数を返す
@@ -895,6 +894,8 @@ Blob 操作: *blob-functions*
895894
blob2list() blobから数値のリストを取得する
896895
list2blob() 数値のリストからblobを取得する
897896
reverse() blob 内の数値の順序を逆にする
897+
index() Blob 中の要素のインデックス
898+
indexof() 式が真となる Blob 内のインデックス
898899

899900
その他の計算: *bitwise-function*
900901
and() ビットごとの論理積
@@ -1440,9 +1441,9 @@ Registers: *register-functions*
14401441

14411442
luaeval() |Lua|の式を評価する
14421443
mzeval() |MzScheme| の式を評価する
1443-
perleval() |Perl|の式を評価する (|+perl|)
1444-
py3eval() |Python|の式を評価する (|+python3|)
1445-
pyeval() |Python|の式を評価する (|+python|)
1444+
perleval() |Perl|の式を評価する
1445+
py3eval() |Python|の式を評価する
1446+
pyeval() |Python|の式を評価する
14461447
pyxeval() |python_x| の式を評価する
14471448
rubyeval() |Ruby| の式を評価する
14481449

@@ -1565,7 +1566,7 @@ Registers: *register-functions*
15651566
15661567
次のように実行すると: >
15671568
1568-
:10,15Number()
1569+
:10,15 call Number()
15691570
15701571
関数は 6 回実行され、10行目から開始し終了は15行目です。
15711572

en/usr_41.txt

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_41.txt* For Vim version 9.1. Last change: 2025 Jul 21
1+
*usr_41.txt* For Vim version 9.1. Last change: 2025 Aug 10
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -30,10 +30,10 @@ Table of contents: |usr_toc.txt|
3030
*41.1* Introduction *vim-script-intro* *script*
3131

3232
Let's start with some nomenclature. A Vim script is any file that Vim can
33-
interpret and execute. This includes files written in Vim's scripting language
34-
like for example .vim files or configuration files like .vimrc and .gvimrc.
35-
These scripts may define functions, commands and settings that Vim uses to
36-
customize and extend its behavior.
33+
interpret and execute. This includes files written in Vim's scripting
34+
language like for example .vim files or configuration files like .vimrc and
35+
.gvimrc. These scripts may define functions, commands and settings that Vim
36+
uses to customize and extend its behavior.
3737

3838
*vim-script-notation*
3939
The correct notation is "Vim script" (or "Vim9 script" when refering to the
@@ -125,8 +125,8 @@ make such a loop, it can be written much more compact: >
125125
echo $"count is {i}"
126126
endfor
127127
128-
We won't explain how `for`, `range()`and `$"string"` work until later. Follow
129-
the links if you are impatient.
128+
We won't explain how `for`, `range()` and `$"string"` work until later.
129+
Follow the links if you are impatient.
130130

131131

132132
TRYING OUT EXAMPLES
@@ -749,7 +749,7 @@ String manipulation: *string-functions*
749749
str2list() get list of numbers from a string
750750
str2nr() convert a string to a Number
751751
str2float() convert a string to a Float
752-
printf() format a string according to % items
752+
printf() format a string according to "%" items
753753
escape() escape characters in a string with a '\'
754754
shellescape() escape a string for use with a shell command
755755
fnameescape() escape a file name for use with a Vim command
@@ -832,9 +832,8 @@ List manipulation: *list-functions*
832832
range() return a List with a sequence of numbers
833833
string() String representation of a List
834834
call() call a function with List as arguments
835-
index() index of a value in a List or Blob
836-
indexof() index in a List or Blob where an expression
837-
evaluates to true
835+
index() index of a value in a List
836+
indexof() index in a List where an expression is true
838837
max() maximum value in a List
839838
min() minimum value in a List
840839
count() count number of times a value appears in a List
@@ -918,6 +917,8 @@ Blob manipulation: *blob-functions*
918917
blob2list() get a list of numbers from a blob
919918
list2blob() get a blob from a list of numbers
920919
reverse() reverse the order of numbers in a blob
920+
index() index of a value in a Blob
921+
indexof() index in a Blob where an expression is true
921922

922923
Other computation: *bitwise-function*
923924
and() bitwise AND
@@ -1456,9 +1457,9 @@ Various: *various-functions*
14561457

14571458
luaeval() evaluate |Lua| expression
14581459
mzeval() evaluate |MzScheme| expression
1459-
perleval() evaluate Perl expression (|+perl|)
1460-
py3eval() evaluate Python expression (|+python3|)
1461-
pyeval() evaluate Python expression (|+python|)
1460+
perleval() evaluate Perl expression
1461+
py3eval() evaluate Python expression
1462+
pyeval() evaluate Python expression
14621463
pyxeval() evaluate |python_x| expression
14631464
rubyeval() evaluate |Ruby| expression
14641465

@@ -1586,7 +1587,7 @@ once for every line in the range, with the cursor in that line. Example: >
15861587
15871588
If you call this function with: >
15881589
1589-
:10,15Number()
1590+
:10,15 call Number()
15901591
15911592
The function will be called six times, starting on line 10 and ending on line
15921593
15.

0 commit comments

Comments
 (0)