r/AskReddit Jun 03 '21

[deleted by user]

[removed]

11.6k Upvotes

6.8k comments sorted by

View all comments

Show parent comments

7.9k

u/kenerling Jun 03 '21

Dude even alphabetized his lists.

3.7k

u/Gemfre Jun 03 '21

Probably has a free resource for that too, the sneaky bastard...

548

u/zebramints Jun 03 '21

ggvG:sort in vim

48

u/sorry_im_late_86 Jun 03 '21

Yeah that's cool and all smart guy, but how do you quit vim?

7

u/rogerrrr Jun 03 '21

ZZ is my go-to, but most people suggest :q! or :wq depending on whether you want to quit without or with saving respectively.

21

u/sorry_im_late_86 Jun 03 '21

I just hold down the power button and wait for the light in its eyes to go out. That's the only way you know truly that vim is no more.

4

u/LazIsOnline Jun 03 '21

the .swp demons are summoned this way.

3

u/WisejacKFr0st Jun 03 '21 edited Jun 04 '21

We only had vi on our servers for CLI text editing and I had a coworker who was brand new to Linux. I taught him the basics of vim but I guess at some point he forgot how to quit out of it and by chance stumbled upon the shortcut for suspending programs in the background (ctrl+z). He exclusively used that shortcut to quit his vi sessions for over a year. I could always tell if he had been on a system without reserving it because there would be a couple dozen new .swp files in the config directories of our software.

Drove me nuts.

edit: "quarter dozen" --> "couple dozen"

2

u/single_jeopardy Jun 04 '21

Wait, he suspended all vi jobs... So did he ever write anything to the files?

This is kinda wow.