Post Ai4ORsK943PJlvqjb6 by unixwitch@social.tchncs.de
 (DIR) More posts by unixwitch@social.tchncs.de
 (DIR) Post #Ai2xI8H216gqQIYyHY by conorh@mastodon.sdf.org
       2024-05-17T20:09:49Z
       
       10 likes, 6 repeats
       
       During lunch a friend mentioned that you can just supply a HTTP URL to vim on the command line and it would use curl to download that resource and allow you to edit the content. I jokingly asked whether if you enter :w it would then issue a HTTP POST back to the origin which is of course ridiculous.It issues a PUT
       
 (DIR) Post #Ai4ORsK943PJlvqjb6 by unixwitch@social.tchncs.de
       2024-05-18T08:50:03Z
       
       1 likes, 1 repeats
       
       @conorh Other protocols are also possible, e.g. you can edit files via scpvim scp://user@remoteserver.example.org//home/user/remotefile.txt#vim #ssh #scp
       
 (DIR) Post #Ai4OVQvIshqnwsvW3k by smallsees@social.dropbear.xyz
       2024-05-20T03:28:21Z
       
       0 likes, 0 repeats
       
       @unixwitch @conorh I didn't fully believe you but just tried it with the scp URL.It works, amazing! Never knew it could do that.
       
 (DIR) Post #Ai4fKTcsBtIQMmfR8i by ache@mastodon.xyz
       2024-05-20T06:36:54Z
       
       0 likes, 0 repeats
       
       @smallsees @unixwitch @conorh Is scp still a thing ?I mean, it's sftp now. Should work with any sftp server so.
       
 (DIR) Post #Ai4nMIu5pHVtKB6VcG by Kitty@kitty.social
       2024-05-20T08:07:04.475Z
       
       0 likes, 0 repeats
       
       @unixwitch@social.tchncs.de @conorh@mastodon.sdf.org or vim \\server.domain.fqdn\smb_share\file.txtI use vim included with the gvim windows distribution at my day job, it also works with the powershell-native SMB provider using relative paths as long as you ensure that you're calling vim.exe and not the vim.bat wrapper they jam in your PATH by default