this post was submitted on 26 Oct 2024
648 points (97.0% liked)

Programmer Humor

32475 readers
1525 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 2 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 2 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 2 weeks ago* (last edited 2 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.