When executing a vim command, such as the following:
:w!<CR>:!cd %:p:h
What is the effect after the command is finished? Is the new cwd the directory that I've cd'ed into? Or does that only last for the duration of the command?
When executing a vim command, such as the following:
:w!<CR>:!cd %:p:h
What is the effect after the command is finished? Is the new cwd the directory that I've cd'ed into? Or does that only last for the duration of the command?
cdto a different directory running in an external subprocess from Vim? That does not seem to make any sense. Rather use:cdor:lcdor:tcdor:set autochdir– Christian Brabandt Jan 21 '21 at 07:47