File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -507,15 +507,15 @@ Note 行を追加するときは、その行に改行文字 '\n' が含まれて
507
507
r.append(str) その範囲に行を追加する
508
508
r.append(str, nr) "nr" 行目の後に追加する
509
509
r.append(list) その範囲にリストで与えられた複数行を追加する。
510
- これはPythonのリストオブジェクトに対する操作とは異な
511
- ることに注意してください 。
510
+ Note これはPythonのリストオブジェクトに対する操作とは
511
+ 異なることに注意してください 。
512
512
r.append(list, nr) "nr" 行目の後に追加する
513
513
514
514
Range オブジェクトの型は vim モジュールの "Range" 属性で取得できます。
515
515
516
- バッファと違い、レンジは "name" 属性を持たず、また、mark()、range()メソッドも
517
- 持ちません。その代わり、レンジは範囲の最後に行を付け加えるappend()メソッドを持
518
- ちます。
516
+ 例 (r が現在の範囲であると仮定する): >
517
+ # 範囲内のすべての行をデフォルトのプリンターに送信する
518
+ vim.command("%d,%dhardcopy!" % (r.start+1,r.end+1))
519
519
520
520
==============================================================================
521
521
5. ウィンドウオブジェクト *python-window*
Original file line number Diff line number Diff line change @@ -524,7 +524,7 @@ The range object methods are:
524
524
525
525
Range object type is available using "Range" attribute of vim module.
526
526
527
- Example (assume r is the current range):
527
+ Example (assume r is the current range): >
528
528
# Send all lines in a range to the default printer
529
529
vim.command("%d,%dhardcopy!" % (r.start+1,r.end+1))
530
530
You can’t perform that action at this time.
0 commit comments