this post was submitted on 27 Dec 2023
152 points (75.3% liked)

linuxmemes

20880 readers
3 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 14 points 10 months ago (1 children)

VIM Golf.... Same outcome, fewer strokes:

%d|wq

[–] [email protected] 6 points 10 months ago (1 children)

you can replace wq with x

:%d|x

[–] [email protected] 5 points 10 months ago

Only in Vim, not in Vi.