FG
💻 Software

Equivalent of cd for scp in vim

Fresh7 days ago
Mar 15, 2026280 views
Confidence Score0%
0%

Problem

When using the delightful support in vim to open a file, opening directly works well, as in however, you can't change the working directory via Is there a way of getting this or equivalent behavior? Key part is I want to be able to use a relative path to edit files. Please feel free to use scripts …

Error Output

:e scp://hostname//path/to/file

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Equivalent of cd for scp in vim

Low Risk

The concept of current directory is a property of a process. Since your vim process and the process at the other end of the scp are different, there is no way to effect its notion of the current directory. That said, scp likely starts with a current…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment