While using Neovim, I love :term very much.Most of the time, I do the following steps:vsplit to open a vertical window.:term in the new window to enter terminal.$ cd CURRENT_PATH in the shell.I was wondering if maybe I could combine them all in one vim command?
How to combine `vsplit` `term` and `cd` current directory?
neovim
In Vim, the | character is used as a command separator, making it equivalent to the semicolon in the Unix shell.  Furthermore, the full syntax to the :term command is as follows: :te[rminal][!] {cmd}Therefore, I believe the following command should do the trick::let CP=expand('%:p:h') | vsplit | exec ':term cd ' .CP .''I do not have Neovim installed, however, so am unable to test this command at the moment.