conorh,
@conorh@mastodon.sdf.org avatar

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

unixwitch,
@unixwitch@social.tchncs.de avatar

@conorh
Other protocols are also possible, e.g. you can edit files via scp

vim scp://user@remoteserver.example.org//home/user/remotefile.txt

alex,
@alex@moreati.org.uk avatar

@conorh vim foo.txt.gz transparently decompresses the file, then recompresses on save. vim bar.tar.gz or vim baz.zip shows a list of the files in the archive, so you can choose which ones to edit tranparently.

n3wjack,
@n3wjack@mastodon.social avatar

@conorh I didn't know about the PUT.
That means you can use vim as an editor to edit data in a REST API though. 🤯

tony,
@tony@hoyle.me.uk avatar

deleted_by_author

  • Loading...
  • breizh,
    @breizh@pleroma.breizh.pm avatar

    @tony @conorh Arch don’t come with anything, you have to install it explicitely.

    The base package does not include all tools from the live installation, so installing more packages may be necessary for a fully functional base system. To install other packages or package groups, append the names to the pacstrap command above (space separated) or use pacman to install them while chrooted into the new system. In particular, consider installing:
    […]

    • a console text editor (e.g nano) to allow editing configuration files from the console,

    I mean, you could use bash, cat or even sed, that are in the base group, but I think that doesn’t count as an editor here ^^’

    haploc,
    @haploc@fedi.cr-net.be avatar

    @conorh
    My server logs gave me a wget entry. Nevertheless 🤯

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • tacticalgear
  • provamag3
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • megavids
  • anitta
  • modclub
  • JUstTest
  • lostlight
  • All magazines