Skip to content

Commit 50d4d9e

Browse files
authored
Merge pull request #1844 from h-east/update-terminal
Update terminal.{txt,jax}
2 parents 777d97b + aabc60c commit 50d4d9e

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

doc/terminal.jax

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim バージョン 9.1. Last change: 2024 Nov 19
1+
*terminal.txt* For Vim バージョン 9.1. Last change: 2024 Nov 23
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -196,6 +196,13 @@ Normal ハイライトグループにより決定される。
196196
[command] が NONE の場合ジョブは開始されず、端末の pty
197197
は gdb のようなコマンドによって利用できる。
198198

199+
*terminal-nospecial*
200+
Vim 自体は [command] 内の |cmdline-special| 文字のみを
201+
認識する。その他はすべてそのまま渡される。ワイルドカー
202+
ド、環境変数、またはその他のシェル特殊文字を展開する必
203+
要がある場合は、|term++shell| オプションを検討するこ
204+
と。
205+
199206
[command] がない場合、デフォルトの動作はシェルが終了し
200207
たときに端末を閉じる。この動作は ++noclose 引数で変更
201208
できる。
@@ -240,10 +247,16 @@ Normal ハイライトグループにより決定される。
240247
ウは使用されない。
241248
++norestore セッションファイルに端末ウィンドウを含
242249
めない。
250+
251+
*term++shell*
243252
++shell {command} を直接実行するのではなく、
244253
`:!command` と同様にシェルを使用する。
245254
*E279*
246255
{Vim: UnixとMS-Windowsでのみ動作する}
256+
結果のコマンドは次のようになる
257+
'shell' 'shellcmdflag' [command]
258+
`:!command` に関連するその他のオプショ
259+
ンは効果がない。
247260
++kill={how} 端末ウィンドウを閉じるときに {how}
248261
ジョブを終了させる。値については
249262
|term_setkill()| を参照。

en/terminal.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim version 9.1. Last change: 2024 Nov 19
1+
*terminal.txt* For Vim version 9.1. Last change: 2024 Nov 23
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -197,6 +197,13 @@ Command syntax ~
197197
if [command] is NONE no job is started, the pty of the
198198
terminal can be used by a command like gdb.
199199

200+
*terminal-nospecial*
201+
Vim itself only recognizes |cmdline-special|
202+
characters inside [command]. Everything else will be
203+
passed untouched. When needed to expand wildcards,
204+
environment variables or other shell specials consider
205+
|term++shell| option.
206+
200207
If [command] is missing the default behavior is to
201208
close the terminal when the shell exits. This can be
202209
changed with the ++noclose argument.
@@ -241,10 +248,16 @@ Command syntax ~
241248
no window will be used.
242249
++norestore Do not include this terminal window
243250
in a session file.
251+
252+
*term++shell*
244253
++shell Instead of executing {command}
245254
directly, use a shell, like with
246255
`:!command` *E279*
247256
{only works on Unix and MS-Windows}
257+
The resulting command will look like
258+
'shell' 'shellcmdflag' [command]
259+
Other options related to `:!command`
260+
have no effect.
248261
++kill={how} When trying to close the terminal
249262
window kill the job with {how}. See
250263
|term_setkill()| for the values.

0 commit comments

Comments
 (0)