diff options
Diffstat (limited to 'runtime/doc/terminal.txt')
-rw-r--r-- | runtime/doc/terminal.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/doc/terminal.txt b/runtime/doc/terminal.txt index 56f0dc82d1..0b94f8a043 100644 --- a/runtime/doc/terminal.txt +++ b/runtime/doc/terminal.txt @@ -1022,8 +1022,10 @@ create a security problem. *terminal-autoshelldir* This can be used to pass the current directory from a shell to Vim. Put this in your .vimrc: > - def g:Tapi_lcd(_, args: string) - execute 'silent lcd ' .. args + def g:Tapi_lcd(_, path: string) + if isdirectory(path) + execute 'silent lcd ' .. fnameescape(path) + endif enddef < And, in a bash init file: > |