I just learned about that trick recently. VIM is really a wonderful piece of software.
And if you are using ~/.ssh/config to store aliases to your servers, you can even use them to access those servers easily.
$vim scp://hostAlias//home/user
And using this syntax will bring your VIM explorer which you can access by typing :Explore. Isn't it wonderful to be able to edit remote files from VIM?
If you don't want to quit VIM and execute commands, you can use the :! mycmd syntax to issue commands without quitting vim like :!docker-compose run --rm npm install --save-dev aminnairi/eslint-config and it will just install the packages I need before going back to VIM without quitting my SCP session.
No more VIM configuration on the server needed.
I think I've just found love.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi there, thanks for your article!
I just learned about that trick recently. VIM is really a wonderful piece of software.
And if you are using
~/.ssh/config
to store aliases to your servers, you can even use them to access those servers easily.And using this syntax will bring your VIM explorer which you can access by typing
:Explore
. Isn't it wonderful to be able to edit remote files from VIM?If you don't want to quit VIM and execute commands, you can use the
:! mycmd
syntax to issue commands without quitting vim like:!docker-compose run --rm npm install --save-dev aminnairi/eslint-config
and it will just install the packages I need before going back to VIM without quitting my SCP session.No more VIM configuration on the server needed.
I think I've just found love.