Reputation: 32726
Trying to edit files locally to remove the lag and not needing to sync my vim config. I can't figure out why this isn't working at all. If I do
vim scp://user@host/home/user/project/
I get
:!scp -q 'user@host/home/user/project/'
'/var/folders/fm/vyvfk53d2b5gf63m7dnv3gqc0000gn/T/vGhn9Hf/0.txt'
"/var/folders/fm/vyvfk53d2b5gf63m7dnv3gqc0000gn/T/vGhn9Hf/0.txt" [New File]
Press ENTER or type command to continue
If I run just normal SCP commands they download just fine:
scp -r user@host:home/user/project/ project/
foo.txt 100% 20 0.0KB/s 00:00
Upvotes: 1
Views: 129
Reputation: 25966
You need to specify two slashes //
as manual describes:
vim scp://[email protected]//path/to/document
So for you use case:
vim scp://user@host//home/user/project/
but anyway with scp, you need to specify the file you want to edit, not only directory you want to browse through.
For directories, you need to use sftp
, which has the ability to browse through the directories:
vim sftp://user@host//home/user/project/
Upvotes: 2