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.
How can I deploy my .vimrc on Divio-Cloud to use with a ssh connection?
69 views Asked by didierCH At
1
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 appropriateControlMaster
andControlPath
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
orunison
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
.