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

Programmer Humor

32343 readers
1182 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 5 days 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...

[–] clb92@feddit.dk 2 points 4 days ago* (last edited 4 days 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.

[–] SpaceNoodle@lemmy.world 5 points 5 days ago

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

But yeah, it buffers the lines.