-
Notifications
You must be signed in to change notification settings - Fork 65
Update if_pyth.{txt,jax} #1787
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
Update if_pyth.{txt,jax} #1787
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| *if_pyth.txt* For Vim バージョン 9.1. Last change: 2024 May 16 | ||
| *if_pyth.txt* For Vim バージョン 9.1. Last change: 2024 Nov 06 | ||
|
|
||
|
|
||
| VIMリファレンスマニュアル by Paul Moore | ||
|
|
@@ -196,6 +196,10 @@ vim.eval(str) *python-eval* | |
| [{'cmd': '/^eval_expr(arg, nextcmd)$/', 'static': 0, 'name': ~ | ||
| 'eval_expr', 'kind': 'f', 'filename': './src/eval.c'}] ~ | ||
|
|
||
| NOTE: vim9script では、def 関数内のローカル変数は Python の評価では表 | ||
| 示されません。ローカル変数を Python の評価に渡すには、|py3eval()| 等を | ||
| 呼び出すときに {locals} 辞書を使用します。 | ||
|
|
||
| vim.bindeval(str) *python-bindeval* | ||
| |python-eval| と似ていますが、特殊なオブジェクトを返します | ||
| (|python-bindeval-objects| 参照)。これを使うと Vim のリスト (|List|) | ||
|
|
@@ -730,6 +734,10 @@ vim.Function オブジェクト *python-Function* | |
| 使って Python の式を評価して、その値を Vim script に渡すことができます。 | ||
| |pyxeval()| も使用可能です。 | ||
|
|
||
| オプションの {locals} 辞書を使用して、評価にローカル変数を挿入できます。これ | ||
| は、vim.eval |python-eval| が def 関数内でローカル変数を見つけられない | ||
|
||
| vim9script で特に役立ちます。 | ||
|
|
||
| Python での "None" は v:none に変換されます。 | ||
|
|
||
| ============================================================================== | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.