I have a few php files open in Vim, at the same time I want to list files from specific folder in the same server in terminal. How should I do that ?
For example:
In terminal, I am in devserver:~$
Using Vim, I have opened few files to continue my work.
Now, to do other operations on the same server (for example, I would like to list files from styles/), how do I use the terminal window/tab ?
What I do:
In one tab, open files using Vim and In another tab do other operations in same server (like listing/removing etc).
In this case, I have to do ssh login for each tab. Is there any way where I can code using Vim and do other operations in the same server in terminal ?
Please guide me for the best practices for this.
In command mode you can use !<command>
For example:
:!ls
to list files in the current directory.
I use Ctrl-z to suspend vim
, and fg to call it back.
If you want to do 3+ tasks at the same time, I suggest tmux
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With