|
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 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -208,6 +208,7 @@ Command syntax ~
|
208 | 208 | [command]. Use `:execute` if you must have a Vim
|
209 | 209 | command following in the same line.
|
210 | 210 |
|
| 211 | + *terminal-bufname* |
211 | 212 | A new buffer will be created, using [command] or
|
212 | 213 | 'shell' as the name, prefixed with a "!". If a buffer
|
213 | 214 | 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.
|
1024 | 1025 | Put this in your .vimrc: >
|
1025 | 1026 | def g:Tapi_lcd(_, path: string)
|
1026 | 1027 | if isdirectory(path)
|
1027 |
| - execute 'silent lcd ' .. fnameescape(path) |
1028 |
| - endif |
| 1028 | + execute 'silent lcd ' .. fnameescape(path) |
| 1029 | + endif |
1029 | 1030 | enddef
|
1030 | 1031 | <
|
1031 | 1032 | 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 |
1038 | 1039 | <
|
1039 | 1040 | Or, for zsh: >
|
1040 | 1041 | if [[ -n "$VIM_TERMINAL" ]]; then
|
@@ -1402,8 +1403,8 @@ Other commands ~
|
1402 | 1403 | *:Asm* jump to the window with the disassembly, create it if there
|
1403 | 1404 | isn't one
|
1404 | 1405 | *: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 |
1407 | 1408 |
|
1408 | 1409 | Events ~
|
1409 | 1410 | *termdebug-events*
|
|
0 commit comments