I want vim to launch rails console(it's like relp) within terminal windows when vim is launched on my project directory. To launch rails console, I need to run three commands like below and it's tedious.
vagrant up # launch virtual server. ssh email@example.com # ssh into virtual server cd xxxx/xxxx/ && bundle exec rails c # launch rails console. It runs on virtual server.
I could achieve this by adding some vimscript to vimrc.
- send the commands to the terminal by
But this approach has a problem. In this way
:term create a window on the foreground. so if I edit files, they're hidden when
:term is executed.
How could I create a terminal window in the background?