Skip to content

Update usr_41.{txt,jax} #2242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions doc/usr_41.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*usr_41.txt* For Vim バージョン 9.1. Last change: 2025 Jul 21
*usr_41.txt* For Vim バージョン 9.1. Last change: 2025 Aug 10

VIM USER MANUAL - by Bram Moolenaar

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

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

luaeval() |Lua|の式を評価する
mzeval() |MzScheme| の式を評価する
perleval() |Perl|の式を評価する (|+perl|)
py3eval() |Python|の式を評価する (|+python3|)
pyeval() |Python|の式を評価する (|+python|)
perleval() |Perl|の式を評価する
py3eval() |Python|の式を評価する
pyeval() |Python|の式を評価する
pyxeval() |python_x| の式を評価する
rubyeval() |Ruby| の式を評価する

Expand Down Expand Up @@ -1565,7 +1566,7 @@ Registers: *register-functions*

次のように実行すると: >

:10,15Number()
:10,15call Number()

関数は 6 回実行され、10行目から開始し終了は15行目です。

Expand Down
31 changes: 16 additions & 15 deletions en/usr_41.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*usr_41.txt* For Vim version 9.1. Last change: 2025 Jul 21
*usr_41.txt* For Vim version 9.1. Last change: 2025 Aug 10

VIM USER MANUAL - by Bram Moolenaar

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

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

*vim-script-notation*
The correct notation is "Vim script" (or "Vim9 script" when refering to the
Expand Down Expand Up @@ -125,8 +125,8 @@ make such a loop, it can be written much more compact: >
echo $"count is {i}"
endfor

We won't explain how `for`, `range()`and `$"string"` work until later. Follow
the links if you are impatient.
We won't explain how `for`, `range()` and `$"string"` work until later.
Follow the links if you are impatient.


TRYING OUT EXAMPLES
Expand Down Expand Up @@ -749,7 +749,7 @@ String manipulation: *string-functions*
str2list() get list of numbers from a string
str2nr() convert a string to a Number
str2float() convert a string to a Float
printf() format a string according to % items
printf() format a string according to "%" items
escape() escape characters in a string with a '\'
shellescape() escape a string for use with a shell command
fnameescape() escape a file name for use with a Vim command
Expand Down Expand Up @@ -832,9 +832,8 @@ List manipulation: *list-functions*
range() return a List with a sequence of numbers
string() String representation of a List
call() call a function with List as arguments
index() index of a value in a List or Blob
indexof() index in a List or Blob where an expression
evaluates to true
index() index of a value in a List
indexof() index in a List where an expression is true
max() maximum value in a List
min() minimum value in a List
count() count number of times a value appears in a List
Expand Down Expand Up @@ -918,6 +917,8 @@ Blob manipulation: *blob-functions*
blob2list() get a list of numbers from a blob
list2blob() get a blob from a list of numbers
reverse() reverse the order of numbers in a blob
index() index of a value in a Blob
indexof() index in a Blob where an expression is true

Other computation: *bitwise-function*
and() bitwise AND
Expand Down Expand Up @@ -1456,9 +1457,9 @@ Various: *various-functions*

luaeval() evaluate |Lua| expression
mzeval() evaluate |MzScheme| expression
perleval() evaluate Perl expression (|+perl|)
py3eval() evaluate Python expression (|+python3|)
pyeval() evaluate Python expression (|+python|)
perleval() evaluate Perl expression
py3eval() evaluate Python expression
pyeval() evaluate Python expression
pyxeval() evaluate |python_x| expression
rubyeval() evaluate |Ruby| expression

Expand Down Expand Up @@ -1586,7 +1587,7 @@ once for every line in the range, with the cursor in that line. Example: >

If you call this function with: >

:10,15Number()
:10,15call Number()

The function will be called six times, starting on line 10 and ending on line
15.
Expand Down