1
- *terminal.txt* For Vim バージョン 9.1. Last change: 2024 Mar 17
1
+ *terminal.txt* For Vim バージョン 9.1. Last change: 2024 Jun 08
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,6 +633,9 @@ 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} に関連付いたジョブを取得する。
@@ -628,6 +644,8 @@ term_getjob({buf}) *term_getjob()*
628
644
629
645
| method | としても使用できる: >
630
646
GetBufnr()->term_getjob()
647
+ <
648
+ 戻り値の型: | job |
631
649
632
650
633
651
term_getline({buf} , {row} ) *term_getline()*
@@ -641,6 +659,8 @@ term_getline({buf}, {row}) *term_getline()*
641
659
642
660
| method | としても使用できる: >
643
661
GetBufnr()->term_getline(row)
662
+ <
663
+ 戻り値の型: | String |
644
664
645
665
646
666
term_getscrolled({buf} ) *term_getscrolled()*
@@ -656,6 +676,8 @@ term_getscrolled({buf}) *term_getscrolled()*
656
676
657
677
| method | としても使用できる: >
658
678
GetBufnr()->term_getscrolled()
679
+ <
680
+ 戻り値の型: | Number |
659
681
660
682
661
683
term_getsize({buf} ) *term_getsize()*
@@ -669,6 +691,8 @@ term_getsize({buf}) *term_getsize()*
669
691
670
692
| method | としても使用できる: >
671
693
GetBufnr()->term_getsize()
694
+ <
695
+ 戻り値の型: list<number> または list<any>
672
696
673
697
674
698
term_getstatus({buf} ) *term_getstatus()*
@@ -685,6 +709,8 @@ term_getstatus({buf}) *term_getstatus()*
685
709
686
710
| method | としても使用できる: >
687
711
GetBufnr()->term_getstatus()
712
+ <
713
+ 戻り値の型: | String |
688
714
689
715
690
716
term_gettitle({buf} ) *term_gettitle()*
@@ -697,6 +723,8 @@ term_gettitle({buf}) *term_gettitle()*
697
723
698
724
| method | としても使用できる: >
699
725
GetBufnr()->term_gettitle()
726
+ <
727
+ 戻り値の型: | String |
700
728
701
729
702
730
term_gettty({buf} [, {input} ]) *term_gettty()*
@@ -709,11 +737,15 @@ term_gettty({buf} [, {input}]) *term_gettty()*
709
737
710
738
| method | としても使用できる: >
711
739
GetBufnr()->term_gettty()
740
+ <
741
+ 戻り値の型: | String |
712
742
713
743
714
744
term_list() *term_list()*
715
745
すべての端末ウィンドウのバッファのバッファ番号のリストを返す。
716
746
747
+ 戻り値の型: list<number> または list<any>
748
+
717
749
718
750
term_scrape({buf} , {row} ) *term_scrape()*
719
751
端末スクリーン {buf} の {row} にある内容を取得する。
@@ -733,6 +765,8 @@ term_scrape({buf}, {row}) *term_scrape()*
733
765
734
766
| method | としても使用できる: >
735
767
GetBufnr()->term_scrape(row)
768
+ <
769
+ 戻り値の型: list<dict<any> > または list<any>
736
770
737
771
738
772
term_sendkeys({buf} , {keys} ) *term_sendkeys()*
@@ -744,6 +778,8 @@ term_sendkeys({buf}, {keys}) *term_sendkeys()*
744
778
745
779
| method | としても使用できる: >
746
780
GetBufnr()->term_sendkeys(keys)
781
+ <
782
+ 戻り値の型: | Number |
747
783
748
784
749
785
term_setansicolors({buf} , {colors} ) *term_setansicolors()*
@@ -778,8 +814,10 @@ term_setansicolors({buf}, {colors}) *term_setansicolors()*
778
814
779
815
| method | としても使用できる: >
780
816
GetBufnr()->term_sendkeys(keys)
817
+ <
818
+ 戻り値の型: | Number |
781
819
782
- < {GUI が有効もしくは | +termguicolors | 機能付きでコンパイルされ
820
+ {GUI が有効もしくは | +termguicolors | 機能付きでコンパイルされ
783
821
たときのみ有効}
784
822
785
823
@@ -794,6 +832,8 @@ term_setapi({buf}, {expr}) *term_setapi()*
794
832
795
833
| method | としても使用できる、ベースは {buf} に使用される: >
796
834
GetBufnr()->term_setapi({expr})
835
+ <
836
+ 戻り値の型: | Number |
797
837
798
838
799
839
term_setkill({buf} , {how} ) *term_setkill()*
@@ -810,6 +850,8 @@ term_setkill({buf}, {how}) *term_setkill()*
810
850
811
851
| method | としても使用できる: >
812
852
GetBufnr()->term_setkill(how)
853
+ <
854
+ 戻り値の型: | Number |
813
855
814
856
815
857
term_setrestore({buf} , {command} ) *term_setrestore()*
@@ -824,6 +866,8 @@ term_setrestore({buf}, {command}) *term_setrestore()*
824
866
825
867
| method | としても使用できる: >
826
868
GetBufnr()->term_setrestore(command)
869
+ <
870
+ 戻り値の型: | Number |
827
871
828
872
829
873
term_setsize({buf} , {rows} , {cols} ) *term_setsize()* *E955*
@@ -837,6 +881,8 @@ term_setsize({buf}, {rows}, {cols}) *term_setsize()* *E955*
837
881
838
882
| method | としても使用できる: >
839
883
GetBufnr()->term_setsize(rows, cols)
884
+ <
885
+ 戻り値の型: | Number |
840
886
841
887
842
888
term_start({cmd} [, {options} ]) *term_start()*
@@ -912,6 +958,8 @@ term_start({cmd} [, {options}]) *term_start()*
912
958
913
959
| method | としても使用できる: >
914
960
GetCommand()->term_start()
961
+ <
962
+ 戻り値の型: | Number |
915
963
916
964
917
965
term_wait({buf} [, {time} ]) *term_wait()*
@@ -922,6 +970,8 @@ term_wait({buf} [, {time}]) *term_wait()*
922
970
923
971
| method | としても使用できる: >
924
972
GetBufnr()->term_wait()
973
+ <
974
+ 戻り値の型: | Number |
925
975
926
976
==============================================================================
927
977
3. 端末通信 *terminal-communication*
@@ -1319,8 +1369,8 @@ gdb ウィンドウにフォーカスを移しコマンドを入力します。
1319
1369
1320
1370
*:Run* *:Arguments*
1321
1371
ソースコードを表示するウィンドウで、これらのコマンドをgdbの制御に使用できます:
1322
- ` :Run ` [args] [args] または以前の引数でプログラムを実行する
1323
- ` :Arguments ` {args} 次の `:Run ` のために引数を設定する
1372
+ :Run [args] [args] または以前の引数でプログラムを実行する
1373
+ :Arguments {args} 次の `:Run ` のために引数を設定する
1324
1374
*:Break* カーソル位置にブレークポイントを設定する
1325
1375
:Break {position}
1326
1376
指定位置にブレークポイントを設定する
@@ -1365,25 +1415,25 @@ gdbは各ブレークポイントに番号を与えます。Vim内では、赤
1365
1415
1366
1416
変数を検査する ~
1367
1417
*termdebug-variables* *:Evaluate*
1368
- ` :Evaluate ` カーソルの下の式を評価する
1369
- `K` 上に同じ (無効にする場合は | termdebug_map_K | を参照)
1370
- ` :Evaluate ` {expr} {expr} を評価する
1371
- ` :' <,' >Evaluate ` ビジュアル選択したテキストを評価する
1418
+ :Evaluate カーソルの下の式を評価する
1419
+ K 上に同じ (無効にする場合は | termdebug_map_K | を参照)
1420
+ :Evaluate {expr} {expr} を評価する
1421
+ :'<,'>Evaluate ビジュアル選択したテキストを評価する
1372
1422
1373
1423
これは gdb ウィンドウで "print" コマンドを使ったのに相当します。
1374
1424
`:Evaluate ` は `:Ev` に短縮できます。
1375
1425
1376
1426
1377
1427
スタックフレームの移動 ~
1378
1428
*termdebug-frames* *:Frame* *:Up* *:Down*
1379
- ` :Frame` [frame] フレームを選択する。[frame] は、フレーム番号、アドレ
1429
+ :Frame [frame] フレームを選択する。[frame] は、フレーム番号、アドレ
1380
1430
ス、または関数名 (デフォルト: カレントフレーム)
1381
- ` :Up` [count] [count] フレーム上へ (デフォルト: 1; カレントを呼び出
1431
+ :Up [count] [count] フレーム上へ (デフォルト: 1; カレントを呼び出
1382
1432
したフレーム)
1383
- ` + ` 同上 (無効にするには | termdebug_map_plus | を参照)
1384
- ` :Down` [count] [count] フレーム下へ (デフォルト: 1; カレントによって
1433
+ + 同上 (無効にするには | termdebug_map_plus | を参照)
1434
+ :Down [count] [count] フレーム下へ (デフォルト: 1; カレントによって
1385
1435
呼び出されるフレーム)
1386
- ` - ` 同上 (無効にするには | termdebug_map_minus | を参照)
1436
+ - 同上 (無効にするには | termdebug_map_minus | を参照)
1387
1437
1388
1438
1389
1439
その他のコマンド ~
0 commit comments