Editing remote files in Vim with SSH Configure SSH In ~/.ssh/config, include the lines: Host * ControlPath ~/.ssh/sockets/%r@%h-%p