this post was submitted on 26 Oct 2024
638 points (97.1% liked)

Programmer Humor

32542 readers
498 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Ephera@lemmy.ml 3 points 3 weeks ago (2 children)

Doesn't that just cut one line at a time? Or is this Emacs-like, where it buffers the lines?

That host doesn't have internet access, though, so installing a different editor wasn't really an option to begin with...

[–] SpaceNoodle@lemmy.world 5 points 3 weeks ago

If the host doesn't already have nano, you fucked up super early

But yeah, it buffers the lines.

[–] clb92@feddit.dk 2 points 3 weeks ago* (last edited 3 weeks ago)

Doesn’t that just cut one line at a time?

Move the cursor to the start of what you want to cut, press ALT+A, then move the cursor with arrow keys (you'll see text be highlighted from where the cursor was to where you move your cursor), then once you've moved the cursor to where you want, press CTRL+K to cut.