comparison runtime/doc/terminal.txt @ 29840:b15334beeaa4

Update runtime files Commit: https://github.com/vim/vim/commit/fd999452adaf529a30d78844b5fbee355943da29 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 24 18:30:14 2022 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Wed, 24 Aug 2022 19:45:05 +0200
parents 2198955f9e27
children 9889ff80547e
comparison
equal deleted inserted replaced
29839:30481eb9c6ea 29840:b15334beeaa4
1020 Rationale: Why not allow for any command or expression? Because that might 1020 Rationale: Why not allow for any command or expression? Because that might
1021 create a security problem. 1021 create a security problem.
1022 *terminal-autoshelldir* 1022 *terminal-autoshelldir*
1023 This can be used to pass the current directory from a shell to Vim. 1023 This can be used to pass the current directory from a shell to Vim.
1024 Put this in your .vimrc: > 1024 Put this in your .vimrc: >
1025 def g:Tapi_lcd(_, args: string) 1025 def g:Tapi_lcd(_, path: string)
1026 execute 'silent lcd ' .. args 1026 if isdirectory(path)
1027 execute 'silent lcd ' .. fnameescape(path)
1028 endif
1027 enddef 1029 enddef
1028 < 1030 <
1029 And, in a bash init file: > 1031 And, in a bash init file: >
1030 if [[ -n "$VIM_TERMINAL" ]]; then 1032 if [[ -n "$VIM_TERMINAL" ]]; then
1031 PROMPT_COMMAND='_vim_sync_PWD' 1033 PROMPT_COMMAND='_vim_sync_PWD'