Skip to content

Commit 2cefe32

Browse files
authored
Merge pull request #1355 from vim-jp/hh-update-if_pyth
Update if_pyth.{txt,jax}
2 parents d3ac41d + b8c0cbe commit 2cefe32

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

doc/if_pyth.jax

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -507,15 +507,15 @@ Note 行を追加するときは、その行に改行文字 '\n' が含まれて
507507
r.append(str) その範囲に行を追加する
508508
r.append(str, nr) "nr" 行目の後に追加する
509509
r.append(list) その範囲にリストで与えられた複数行を追加する。
510-
これはPythonのリストオブジェクトに対する操作とは異な
511-
ることに注意してください
510+
Note これはPythonのリストオブジェクトに対する操作とは
511+
異なることに注意してください
512512
r.append(list, nr) "nr" 行目の後に追加する
513513

514514
Range オブジェクトの型は vim モジュールの "Range" 属性で取得できます。
515515

516-
バッファと違い、レンジは "name" 属性を持たず、また、mark()、range()メソッドも
517-
持ちません。その代わり、レンジは範囲の最後に行を付け加えるappend()メソッドを持
518-
ちます。
516+
例 (r が現在の範囲であると仮定する): >
517+
# 範囲内のすべての行をデフォルトのプリンターに送信する
518+
vim.command("%d,%dhardcopy!" % (r.start+1,r.end+1))
519519
520520
==============================================================================
521521
5. ウィンドウオブジェクト *python-window*

en/if_pyth.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ The range object methods are:
524524

525525
Range object type is available using "Range" attribute of vim module.
526526

527-
Example (assume r is the current range):
527+
Example (assume r is the current range): >
528528
# Send all lines in a range to the default printer
529529
vim.command("%d,%dhardcopy!" % (r.start+1,r.end+1))
530530

0 commit comments

Comments
 (0)