1
- *terminal.txt* For Vim バージョン 9.1. Last change: 2024 Mar 17
1
+ *terminal.txt* For Vim バージョン 9.1. Last change: 2024 Jun 13
2
2
3
3
4
4
VIMリファレンスマニュアル by Bram Moolenaar
@@ -533,8 +533,10 @@ term_dumpdiff({filename}, {filename} [, {options}])
533
533
| method | としても使用できる: >
534
534
GetFilename()->term_dumpdiff(otherfile)
535
535
<
536
- *term_dumpload()*
537
- term_dumpload({filename} [, {options} ])
536
+ 戻り値の型: | Number |
537
+
538
+
539
+ term_dumpload({filename} [, {options} ]) *term_dumpload()*
538
540
{filename} の内容を表示する新しいウィンドウを開く。このファイ
539
541
ルは | term_dumpwrite() | で作られたものでなければならない。
540
542
失敗したときはバッファ番号もしくは 0 を返す。
@@ -545,8 +547,10 @@ term_dumpload({filename} [, {options}])
545
547
| method | としても使用できる: >
546
548
GetFilename()->term_dumpload()
547
549
<
548
- *term_dumpwrite()*
549
- term_dumpwrite({buf} , {filename} [, {options} ])
550
+ 戻り値の型: | Number |
551
+
552
+
553
+ term_dumpwrite({buf} , {filename} [, {options} ]) *term_dumpwrite()*
550
554
ファイル {filename} に、{buf} の端末画面の内容をダンプする。こ
551
555
れは | term_dumpload() | および | term_dumpdiff() | で使われる
552
556
フォーマットを使用する。
@@ -560,13 +564,18 @@ term_dumpwrite({buf}, {filename} [, {options}])
560
564
561
565
| method | としても使用できる、ベースはファイル名に使用される: >
562
566
GetFilename()->term_dumpwrite(bufnr)
567
+ <
568
+ 戻り値の型: | Number |
569
+
563
570
564
571
term_getaltscreen({buf} ) *term_getaltscreen()*
565
572
{buf} の端末が代替スクリーンを使用している場合 1 を返す。
566
573
{buf} の扱いについては | term_getsize() | と同じ。
567
574
568
575
| method | としても使用できる: >
569
576
GetBufnr()->term_getaltscreen()
577
+ <
578
+ 戻り値の型: | Number |
570
579
571
580
572
581
term_getansicolors({buf} ) *term_getansicolors()*
@@ -582,8 +591,10 @@ term_getansicolors({buf}) *term_getansicolors()*
582
591
583
592
| method | としても使用できる: >
584
593
GetBufnr()->term_getansicolors()
594
+ <
595
+ 戻り値の型: list<string> または list<any>
585
596
586
- < {GUI が有効もしくは | +termguicolors | 機能付きでコンパイルされ
597
+ {GUI が有効もしくは | +termguicolors | 機能付きでコンパイルされ
587
598
たときのみ有効}
588
599
589
600
term_getattr({attr} , {what} ) *term_getattr()*
@@ -598,6 +609,8 @@ term_getattr({attr}, {what}) *term_getattr()*
598
609
599
610
| method | としても使用できる: >
600
611
GetAttr()->term_getattr()
612
+ <
613
+ 戻り値の型: | Number |
601
614
602
615
603
616
term_getcursor({buf} ) *term_getcursor()*
@@ -620,14 +633,20 @@ term_getcursor({buf}) *term_getcursor()*
620
633
621
634
| method | としても使用できる: >
622
635
GetBufnr()->term_getcursor()
636
+ <
637
+ 戻り値の型: list<any>
638
+
623
639
624
640
term_getjob({buf} ) *term_getjob()*
625
641
端末ウィンドウ {buf} に関連付いたジョブを取得する。
626
642
{buf} の扱いについては | term_getsize() | と同じ。
627
- ジョブが存在しないときには | v:null | を返す。
643
+ ジョブがない場合は | v:null | を返す。Vim9 script では、ジョブが
644
+ ない場合 null_job を返す。
628
645
629
646
| method | としても使用できる: >
630
647
GetBufnr()->term_getjob()
648
+ <
649
+ 戻り値の型: | job |
631
650
632
651
633
652
term_getline({buf} , {row} ) *term_getline()*
@@ -641,6 +660,8 @@ term_getline({buf}, {row}) *term_getline()*
641
660
642
661
| method | としても使用できる: >
643
662
GetBufnr()->term_getline(row)
663
+ <
664
+ 戻り値の型: | String |
644
665
645
666
646
667
term_getscrolled({buf} ) *term_getscrolled()*
@@ -656,6 +677,8 @@ term_getscrolled({buf}) *term_getscrolled()*
656
677
657
678
| method | としても使用できる: >
658
679
GetBufnr()->term_getscrolled()
680
+ <
681
+ 戻り値の型: | Number |
659
682
660
683
661
684
term_getsize({buf} ) *term_getsize()*
@@ -669,6 +692,8 @@ term_getsize({buf}) *term_getsize()*
669
692
670
693
| method | としても使用できる: >
671
694
GetBufnr()->term_getsize()
695
+ <
696
+ 戻り値の型: list<number> または list<any>
672
697
673
698
674
699
term_getstatus({buf} ) *term_getstatus()*
@@ -685,6 +710,8 @@ term_getstatus({buf}) *term_getstatus()*
685
710
686
711
| method | としても使用できる: >
687
712
GetBufnr()->term_getstatus()
713
+ <
714
+ 戻り値の型: | String |
688
715
689
716
690
717
term_gettitle({buf} ) *term_gettitle()*
@@ -697,6 +724,8 @@ term_gettitle({buf}) *term_gettitle()*
697
724
698
725
| method | としても使用できる: >
699
726
GetBufnr()->term_gettitle()
727
+ <
728
+ 戻り値の型: | String |
700
729
701
730
702
731
term_gettty({buf} [, {input} ]) *term_gettty()*
@@ -709,11 +738,15 @@ term_gettty({buf} [, {input}]) *term_gettty()*
709
738
710
739
| method | としても使用できる: >
711
740
GetBufnr()->term_gettty()
741
+ <
742
+ 戻り値の型: | String |
712
743
713
744
714
745
term_list() *term_list()*
715
746
すべての端末ウィンドウのバッファのバッファ番号のリストを返す。
716
747
748
+ 戻り値の型: list<number> または list<any>
749
+
717
750
718
751
term_scrape({buf} , {row} ) *term_scrape()*
719
752
端末スクリーン {buf} の {row} にある内容を取得する。
@@ -733,6 +766,8 @@ term_scrape({buf}, {row}) *term_scrape()*
733
766
734
767
| method | としても使用できる: >
735
768
GetBufnr()->term_scrape(row)
769
+ <
770
+ 戻り値の型: list<dict<any> > または list<any>
736
771
737
772
738
773
term_sendkeys({buf} , {keys} ) *term_sendkeys()*
@@ -744,6 +779,8 @@ term_sendkeys({buf}, {keys}) *term_sendkeys()*
744
779
745
780
| method | としても使用できる: >
746
781
GetBufnr()->term_sendkeys(keys)
782
+ <
783
+ 戻り値の型: | Number |
747
784
748
785
749
786
term_setansicolors({buf} , {colors} ) *term_setansicolors()*
@@ -778,8 +815,10 @@ term_setansicolors({buf}, {colors}) *term_setansicolors()*
778
815
779
816
| method | としても使用できる: >
780
817
GetBufnr()->term_sendkeys(keys)
818
+ <
819
+ 戻り値の型: | Number |
781
820
782
- < {GUI が有効もしくは | +termguicolors | 機能付きでコンパイルされ
821
+ {GUI が有効もしくは | +termguicolors | 機能付きでコンパイルされ
783
822
たときのみ有効}
784
823
785
824
@@ -794,6 +833,8 @@ term_setapi({buf}, {expr}) *term_setapi()*
794
833
795
834
| method | としても使用できる、ベースは {buf} に使用される: >
796
835
GetBufnr()->term_setapi({expr})
836
+ <
837
+ 戻り値の型: | Number |
797
838
798
839
799
840
term_setkill({buf} , {how} ) *term_setkill()*
@@ -810,6 +851,8 @@ term_setkill({buf}, {how}) *term_setkill()*
810
851
811
852
| method | としても使用できる: >
812
853
GetBufnr()->term_setkill(how)
854
+ <
855
+ 戻り値の型: | Number |
813
856
814
857
815
858
term_setrestore({buf} , {command} ) *term_setrestore()*
@@ -824,6 +867,8 @@ term_setrestore({buf}, {command}) *term_setrestore()*
824
867
825
868
| method | としても使用できる: >
826
869
GetBufnr()->term_setrestore(command)
870
+ <
871
+ 戻り値の型: | Number |
827
872
828
873
829
874
term_setsize({buf} , {rows} , {cols} ) *term_setsize()* *E955*
@@ -837,6 +882,8 @@ term_setsize({buf}, {rows}, {cols}) *term_setsize()* *E955*
837
882
838
883
| method | としても使用できる: >
839
884
GetBufnr()->term_setsize(rows, cols)
885
+ <
886
+ 戻り値の型: | Number |
840
887
841
888
842
889
term_start({cmd} [, {options} ]) *term_start()*
@@ -912,6 +959,8 @@ term_start({cmd} [, {options}]) *term_start()*
912
959
913
960
| method | としても使用できる: >
914
961
GetCommand()->term_start()
962
+ <
963
+ 戻り値の型: | Number |
915
964
916
965
917
966
term_wait({buf} [, {time} ]) *term_wait()*
@@ -922,6 +971,8 @@ term_wait({buf} [, {time}]) *term_wait()*
922
971
923
972
| method | としても使用できる: >
924
973
GetBufnr()->term_wait()
974
+ <
975
+ 戻り値の型: | Number |
925
976
926
977
==============================================================================
927
978
3. 端末通信 *terminal-communication*
@@ -1319,8 +1370,8 @@ gdb ウィンドウにフォーカスを移しコマンドを入力します。
1319
1370
1320
1371
*:Run* *:Arguments*
1321
1372
ソースコードを表示するウィンドウで、これらのコマンドをgdbの制御に使用できます:
1322
- ` :Run ` [args] [args] または以前の引数でプログラムを実行する
1323
- ` :Arguments ` {args} 次の `:Run ` のために引数を設定する
1373
+ :Run [args] [args] または以前の引数でプログラムを実行する
1374
+ :Arguments {args} 次の `:Run ` のために引数を設定する
1324
1375
*:Break* カーソル位置にブレークポイントを設定する
1325
1376
:Break {position}
1326
1377
指定位置にブレークポイントを設定する
@@ -1365,25 +1416,25 @@ gdbは各ブレークポイントに番号を与えます。Vim内では、赤
1365
1416
1366
1417
変数を検査する ~
1367
1418
*termdebug-variables* *:Evaluate*
1368
- ` :Evaluate ` カーソルの下の式を評価する
1369
- `K` 上に同じ (無効にする場合は | termdebug_map_K | を参照)
1370
- ` :Evaluate ` {expr} {expr} を評価する
1371
- ` :' <,' >Evaluate ` ビジュアル選択したテキストを評価する
1419
+ :Evaluate カーソルの下の式を評価する
1420
+ K 上に同じ (無効にする場合は | termdebug_map_K | を参照)
1421
+ :Evaluate {expr} {expr} を評価する
1422
+ :'<,'>Evaluate ビジュアル選択したテキストを評価する
1372
1423
1373
1424
これは gdb ウィンドウで "print" コマンドを使ったのに相当します。
1374
1425
`:Evaluate ` は `:Ev` に短縮できます。
1375
1426
1376
1427
1377
1428
スタックフレームの移動 ~
1378
1429
*termdebug-frames* *:Frame* *:Up* *:Down*
1379
- ` :Frame` [frame] フレームを選択する。[frame] は、フレーム番号、アドレ
1430
+ :Frame [frame] フレームを選択する。[frame] は、フレーム番号、アドレ
1380
1431
ス、または関数名 (デフォルト: カレントフレーム)
1381
- ` :Up` [count] [count] フレーム上へ (デフォルト: 1; カレントを呼び出
1432
+ :Up [count] [count] フレーム上へ (デフォルト: 1; カレントを呼び出
1382
1433
したフレーム)
1383
- ` + ` 同上 (無効にするには | termdebug_map_plus | を参照)
1384
- ` :Down` [count] [count] フレーム下へ (デフォルト: 1; カレントによって
1434
+ + 同上 (無効にするには | termdebug_map_plus | を参照)
1435
+ :Down [count] [count] フレーム下へ (デフォルト: 1; カレントによって
1385
1436
呼び出されるフレーム)
1386
- ` - ` 同上 (無効にするには | termdebug_map_minus | を参照)
1437
+ - 同上 (無効にするには | termdebug_map_minus | を参照)
1387
1438
1388
1439
1389
1440
その他のコマンド ~
0 commit comments