Reputation: 428
I want to make some changes on my project with vim through a ssh-connection to Divio-Cloud. How can I deploy my .vimrc to be used by the Vim on Divio-Cloud. Till now it just uses a bare-bonded version without code-highlighting etc.
Upvotes: 0
Views: 60
Reputation: 172658
If you use SSH to connect to Divio-Cloud, and open Vim there, you can use SCP
to copy your local ~/.vimrc
to the remote host, and then restart Vim there. (With an active SSH connection, and the appropriate ControlMaster
and ControlPath
configuration in ~/.ssh/config
, the connection will even be shared and you won't be prompted for a password for the remote copy.)
You can also use other (SSH-based) synchronization methods, like rsync
or unison
to keep your configuration up-to-date and in sync.
Alternatively, you could use Vim on your local system, and open the remote files in it, via the :help netrw
plugin that ships with Vim: :edit scp://hostname/path/to/file
.
Upvotes: 0