Using vim, I use :term to open the terminal emulator. After cd /path/to/project within the terminal emulator, I have a file called foo.txt. If I did vim foo.txt to open it as I would in a normal terminal, it would open vim within vim which causes a variety of issues. I see two potential solutions:
- Find some way to open a file in a split from the terminal emulator
- Find some way to change the cwd of vim to the cwd of the terminal emulator.
Does anyone have tips on either solution?
<C-w><S-n>) and open it