Skip to content

Commit

Permalink
Merge pull request #1794 from h-east/update-if_pyth
Browse files Browse the repository at this point in the history
Update if_pyth.{txt,jax}
  • Loading branch information
h-east authored Nov 9, 2024
2 parents 891cb3d + 21a391d commit c51af00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions doc/if_pyth.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*if_pyth.txt* For Vim バージョン 9.1. Last change: 2024 Nov 06
*if_pyth.txt* For Vim バージョン 9.1. Last change: 2024 Nov 09


VIMリファレンスマニュアル by Paul Moore
Expand Down Expand Up @@ -196,7 +196,7 @@ 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 の評価では見
NOTE: Vim9 script では、def 関数内のローカル変数は Python の評価では見
えません。ローカル変数を Python の評価に渡すには、|py3eval()| 等を呼び
出すときに {locals} 辞書を使用します。

Expand Down
6 changes: 3 additions & 3 deletions en/if_pyth.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*if_pyth.txt* For Vim version 9.1. Last change: 2024 Nov 06
*if_pyth.txt* For Vim version 9.1. Last change: 2024 Nov 09


VIM REFERENCE MANUAL by Paul Moore
Expand Down Expand Up @@ -201,8 +201,8 @@ vim.eval(str) *python-eval*
[{'cmd': '/^eval_expr(arg, nextcmd)$/', 'static': 0, 'name': ~
'eval_expr', 'kind': 'f', 'filename': './src/eval.c'}] ~

NOTE: In vim9script, local variables in def functions are not visible
to to python evaluations. To pass local variables to python evaluations,
NOTE: In Vim9 script, local variables in def functions are not visible
to python evaluations. To pass local variables to python evaluations,
use the {locals} dict when calling |py3eval()| and friends.

vim.bindeval(str) *python-bindeval*
Expand Down

0 comments on commit c51af00

Please sign in to comment.