Skip to content

Commit 365fb49

Browse files
committed
Update terminal.{txt,jax}
1 parent 921f572 commit 365fb49

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

doc/terminal.jax

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim バージョン 9.1. Last change: 2023 Nov 08
1+
*terminal.txt* For Vim バージョン 9.1. Last change: 2024 Feb 21
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -210,6 +210,7 @@ Normal ハイライトグループにより決定されます。
210210
同じ行で Vim コマンドを続けるなら `:execute` を利用し
211211
てください。
212212

213+
*terminal-bufname*
213214
新しいバッファが作られ、 [command] もしくは 'shell'
214215
"!" が前置された名前が与えられます。すでに同じ名前の
215216
バッファが存在する場合には、カッコに囲まれた番号が付与
@@ -1014,17 +1015,17 @@ Vimにこのエスケープシーケンスを送信させるトリック: >
10141015
れを .vimrc に置きます: >
10151016
def g:Tapi_lcd(_, path: string)
10161017
if isdirectory(path)
1017-
execute 'silent lcd ' .. fnameescape(path)
1018-
endif
1018+
execute 'silent lcd ' .. fnameescape(path)
1019+
endif
10191020
enddef
10201021
<
10211022
そして、bash の初期化ファイルには: >
1022-
if [[ -n "$VIM_TERMINAL" ]]; then
1023-
PROMPT_COMMAND='_vim_sync_PWD'
1024-
function _vim_sync_PWD() {
1025-
printf '\033]51;["call", "Tapi_lcd", "%q"]\007' "$PWD"
1026-
}
1027-
fi
1023+
if [[ -n "$VIM_TERMINAL" ]]; then
1024+
PROMPT_COMMAND='_vim_sync_PWD'
1025+
function _vim_sync_PWD() {
1026+
printf '\033]51;["call", "Tapi_lcd", "%q"]\007' "$PWD"
1027+
}
1028+
fi
10281029
<
10291030
または、zsh の場合は: >
10301031
if [[ -n "$VIM_TERMINAL" ]]; then

en/terminal.txt

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim version 9.1. Last change: 2023 Nov 08
1+
*terminal.txt* For Vim version 9.1. Last change: 2024 Feb 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -208,6 +208,7 @@ Command syntax ~
208208
[command]. Use `:execute` if you must have a Vim
209209
command following in the same line.
210210

211+
*terminal-bufname*
211212
A new buffer will be created, using [command] or
212213
'shell' as the name, prefixed with a "!". If a buffer
213214
by this name already exists a number is added in
@@ -1024,17 +1025,17 @@ This can be used to pass the current directory from a shell to Vim.
10241025
Put this in your .vimrc: >
10251026
def g:Tapi_lcd(_, path: string)
10261027
if isdirectory(path)
1027-
execute 'silent lcd ' .. fnameescape(path)
1028-
endif
1028+
execute 'silent lcd ' .. fnameescape(path)
1029+
endif
10291030
enddef
10301031
<
10311032
And, in a bash init file: >
1032-
if [[ -n "$VIM_TERMINAL" ]]; then
1033-
PROMPT_COMMAND='_vim_sync_PWD'
1034-
function _vim_sync_PWD() {
1035-
printf '\033]51;["call", "Tapi_lcd", "%q"]\007' "$PWD"
1036-
}
1037-
fi
1033+
if [[ -n "$VIM_TERMINAL" ]]; then
1034+
PROMPT_COMMAND='_vim_sync_PWD'
1035+
function _vim_sync_PWD() {
1036+
printf '\033]51;["call", "Tapi_lcd", "%q"]\007' "$PWD"
1037+
}
1038+
fi
10381039
<
10391040
Or, for zsh: >
10401041
if [[ -n "$VIM_TERMINAL" ]]; then
@@ -1402,8 +1403,8 @@ Other commands ~
14021403
*:Asm* jump to the window with the disassembly, create it if there
14031404
isn't one
14041405
*:Var* jump to the window with the local and argument variables,
1405-
create it if there isn't one. This window updates whenever the
1406-
program is stopped
1406+
create it if there isn't one. This window updates whenever the
1407+
program is stopped
14071408

14081409
Events ~
14091410
*termdebug-events*

0 commit comments

Comments
 (0)