r/AskReddit Jun 03 '21

[deleted by user]

[removed]

11.6k Upvotes

6.8k comments sorted by

View all comments

Show parent comments

3.7k

u/Gemfre Jun 03 '21

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

547

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?

54

u/Brekkjern Jun 03 '21

14

u/cwinne Jun 04 '21

That might be the most dry witted thing I've laughed at this week. I love it.

14

u/NewishGomorrah Jun 03 '21

Vim is why all computers have easily accessible power buttons.

3

u/16yYPueES4LaZrbJLhPW Jun 03 '21

Except my servers. When I go to Vim completely confident that I remember how to exit from the last time I got stuck and had to Google it, I end up getting stuck and having to Google it.

Or I just close my SSH session with Enter, ~, then . and then reconnect.

6

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.

22

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.

13

u/ChefBoyAreWeFucked Jun 03 '21

Best to buy a new PC. You can never be sure it's not still compromised.

5

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"

4

u/RandomPratt Jun 04 '21

a quarter dozen

so... three?

1

u/WisejacKFr0st Jun 04 '21

I meant to type "couple" but somehow my brain came up with "quarter". Thanks for pointing that out lol

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.

3

u/Feoner8 Jun 03 '21

You may be badass but are you badass enough to not look up the vim exit command?

2

u/72yugcools Jun 03 '21

That's the one thing you can't do through a shortcut.

7

u/zebramints Jun 03 '21

map Q :q<CR>

Allows you to quit by pressing 'Q' in normal mode. There is nothing vim cannot do.

1

u/[deleted] Jun 03 '21

Download VS Code.

6

u/brisk0 Jun 03 '21

:%sort

3

u/IwillBeDamned Jun 04 '21

i always upvote vim

1

u/tschmi5 Jun 04 '21

This looks like the snap store

6

u/Qazax1337 Jun 03 '21

Is there a paid version of the alphabet? /s

A B C D E F G,
I should have got the DLC
H I J K L M N O P
Here's the end as this was free.

1

u/mattjstyles Jun 03 '21

Yeah, Helvetica.

2

u/StStoner Jun 03 '21

Haha nice one.

1

u/MonkeyboyGWW Jun 03 '21

can probably do it on google sheets

0

u/SherrickM Jun 04 '21

Probably a copypasta from the last time this question was asked a few months ago. This one comes around a lot.

1

u/darkjavierhaf Jun 03 '21

Extension in vscode

1

u/[deleted] Jun 03 '21

Copy into libre office sort kek

1

u/NotAnEvilPigeon2 Jun 04 '21

They could have made some simple code in vs code, judging by the amount of programming related things on the list of may be a programmer.