File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- *if_pyth.txt* For Vim バージョン 9.1. Last change: 2025 Nov 09
1+ *if_pyth.txt* For Vim バージョン 9.1. Last change: 2026 Jan 11
22
33
44 VIM リファレンスマニュアル by Paul Moore
@@ -176,11 +176,13 @@ vim.command(str) *python-command*
176176 vim.eval(str) *python-eval*
177177 vim 内の式評価を使って、式を評価します (| expression | を参照)。戻り値は、
178178 次の通り:
179- - Vim の式を評価した結果が文字列か数値ならば文字列
180- - Vim の式を評価した結果がリストならばリスト
181- - Vim の式を評価した結果が Vim の tuple ならば tuple
182- - Vim の式を評価した結果が Vim の辞書ならば辞書
183- 辞書、リストおよび tuple は再帰的に展開されます。
179+ - Vim の式を評価した結果が文字列か数値の場合は文字列
180+ - Vim の式を評価した結果が Vim の | list | の場合はリスト
181+ - Vim の式を評価した結果が Vim の | tuple | の場合は tuple
182+ - Vim の式を評価した結果が Vim の | dict | の場合は辞書
183+ - Vim の式を評価した結果が | v:true | または | v:false | の場合は真偽値
184+ - Vim の式を評価した結果が | v:null | または | v:none | の場合は `None`
185+ 辞書、リストおよび tuple は再帰的に展開される。
184186 例: >
185187 :" 'textwidth' オプションの値
186188 :py text_width = vim.eval("&tw")
Original file line number Diff line number Diff line change 1- *if_pyth.txt* For Vim version 9.1. Last change: 2025 Nov 09
1+ *if_pyth.txt* For Vim version 9.1. Last change: 2026 Jan 11
22
33
44 VIM REFERENCE MANUAL by Paul Moore
@@ -183,9 +183,11 @@ vim.eval(str) *python-eval*
183183 Evaluates the expression str using the vim internal expression
184184 evaluator (see | expression | ). Returns the expression result as:
185185 - a string if the Vim expression evaluates to a string or number
186- - a list if the Vim expression evaluates to a Vim list
187- - a tuple if the Vim expression evaluates to a Vim tuple
188- - a dictionary if the Vim expression evaluates to a Vim dictionary
186+ - a list if the Vim expression evaluates to a Vim | list |
187+ - a tuple if the Vim expression evaluates to a Vim | tuple |
188+ - a dictionary if the Vim expression evaluates to a Vim | dict |
189+ - a boolean if Vim exression evaluates to | v:true | or | v:false |
190+ - `None` if Vim expression evaluates to | v:null | or | v:none |
189191 Dictionaries, lists and tuples are recursively expanded.
190192 Examples: >
191193 :" value of the 'textwidth' option
You can’t perform that action at this time.
0 commit comments