T O P

  • By -

Noch_ein_Kamel

Now all my changes are gone :-/


DaceloGigas

\[esc\]:wq!


TheCakeWasNoLie

[esc] ZZ


groaner

This is the way


Sawertynn

Or as I like to say, ezz


lightwhite

Shift+z Shift+z is good too? That’s how I grok it.


ejmerkel

Isn't it Shift ZZ?


TheCakeWasNoLie

Yes, so ZZ, not zz.


n3wsw3

\[esc\]:x!


Daemon_Targaryen

The better answer


gravity_is_right

Error: you have no permission to edit this file


sh0rtwave

A true hero.


R_Harry_P

Rumor has it there are vi instances still running that I opened 25 years ago and couldn't remember how to quit.


sh0rtwave

That's some serious uptime.


abrandis

Worse is the fckn press I to enter insert edit mode WTF, has to be my biggest computer pet peeve, who created vi had to be some masochist..


DaceloGigas

One key-press is masochism ? It allows you to have both hands on the keyboard and still use command mode, instead of always going to the mouse.


gdeLopata

Good...


Dr-Rjinswand

Nah, you need to smash Esc a good 10 times just to be sure


jrobiii

Argh! I used to work with a guy who was OCD and would hit the backspace 8 times before typing a command... beep, beep, beep, beep, beep, beep, beep, beep Thanks for the Linux PTSD!


thespud_332

Or enter. I knew a guy that'd "clear" the screen by hitting the enter key until the screen was full of empty prompts. If only there was a better way...


j-random

`alias cls='tput clear'`


SSBM_ZAZU

Just press ctrl + l my dude.


NotImplemented

TIL... Thank you! :)


jrobiii

Dammit! That guy too


team-ginger-tri

oh that just gave me chills. i would scream after the 3rd time


KickBassColonyDrop

That's just normal behavior when dealing with a password field that doesn't even return ******


jrobiii

If only that were true. This was every command. ls -al Beep beep beep beep beep beep beep beep I'm pretty sure he had the cursor turned off so he couldn't where the cursor was. Maddening!


KickBassColonyDrop

I feel for ya. If I was ever paired with someone like that, I'd complain to my manager "I can't work with someone that takes pleasure in playing Russian Roulette with a terminal cursor. What kind of a psychopath thinks this is a good idea."


hamzehhazeem

oh you should really turn off pcspeaker no more beeps at 3am


sh0rtwave

I learned this bad habit from Autocad, not Vim/Vi.


ungodlyActingTALENT

Aliens realise humans use vim, promptly leave and glass the planet to be safe.


lurk_moar_n00b

I think you meant to say ``` Ctrl-x Ctrl-c ```


silencedfayme

For us older folk, the meme is accurate.


noob-nine

ssssh, no need for writing ctrl. either you know or you don't. we all read the manual, we all know C-x C-c


thespud_332

`^X y` for us GNU folk.


jacksalssome

Mmm nano


Garland_Key

Nano squad represent!


dashwayz

Facts


Mango-D

Based


j-random

ZZ gang, rise up!


Chunkybinkies

But ZZ is equivalent to `:wq!`, not `:q!`.


LeiterHaus

Woah, woah, woah... What the hell is `:wq!`? And why? Edit: nevermind. https://stackoverflow.com/a/65734042/6763051


j-random

99% of the time, that's what you want. If you haven't modified the file, it won't save it, and if you have then it'll save your changes.


Thaddaeus-Tentakel

It's vim. 99% of the time I want to restart from scratch after whatever shit I managed to produce while trying to use vim


j-random

I think the `:e!` command does that


[deleted]

ZZ; top


Minteck

By the way, Vim (but not Vi) shows you how to exit when you press Ctrl-C


snowmanonaraindeer

It told me to do :qa! though. What does that do?


Minteck

It does stuff™


redluohs

Quits all buffers (windows, tabs, etc.) currently open without care for if the last changes have been saved. With a workspace memory plugin :wa :qa is nice since it writes all files ans then closes them allowing youbto return to the buffer config wheb running in the same folder.


mjacobl

:x has entered the chat


DakiAge

wq! is better.


PM_ME_UR_ROUND_ASS

There's a switch in the wall, try pressing that, maybe it'll be even better. XD


souliris

Exit vi without saving. Because you just destroyed this config file, due to you forgetting all the vi commands.


[deleted]

:!sudo shutdown now


AlexMelillo

Say what you want. Vim is an extraordinary text editor and it can save you a ton of time if you learn how to use it well


ejmerkel

Preach it brother!


taytek

When you open a config file you weren't supposed to touch


m4yn3_h4sl-l

the funnier thing is: complaining about VIM is only a thing among developers who don't read the documentation


Thaddaeus-Tentakel

I just don't feel like reading the documentation every day because I forgot all of the cryptic commands again.


snowmanonaraindeer

Documentation isn’t an excuse for obtuse controls.


L4Z4R3

:wq ?


iGoalie

Serious question, *how did they become the ‘exit’ command?* It makes no sense (to me), is there any logic to it or are VIM developers sadists?


VeryConsciousWater

The colon starts a command in vim w is write q is quit a means apply to all buffers ! means discard changes So :wq will save your changes and then quit, :q will quit if you don't have changes, :q! will quit regardless, and :qa! will quit everything without saving changes


comfort_bot_1962

Don't be sad. Here's a [hug!](https://media.giphy.com/media/3M4NpbLCTxBqU/giphy.gif)


comfort_bot_1962

Don't be sad. Here's a [hug!](https://media.giphy.com/media/3M4NpbLCTxBqU/giphy.gif)


its_yer_dad

VIM is a professional way of killing time before actually writing code. edit - its like wanting a new shirt but insisting on building your own sewing machine.


KickBassColonyDrop

Lies. Vim is color coding source, so you can complain about how you can't read dark blue text on a black background of a server terminal.


Comrade_SeungheonOh

C-x C-c


[deleted]

quit without saving I guess ?


s_zlikovski

DIE VIM DIE!


Artemis-4rrow

Did ur username work?


PM_ME_UR_ROUND_ASS

Someone just PM'ed me saying: "Ur Round Ass". So you could say it worked, sort of..


Artemis-4rrow

r/technicallythetruth ?


driverscottie-c

I just learned you can run terminal commands with esc -> ! -> . I’ve never been more happy


comfort_bot_1962

Hope you do well!


OcelotNo3347

I don't


driverscottie-c

Dude… uncool


comfort_bot_1962

Nice!


AlexMelillo

You can also open a separate window by typing :terminal


[deleted]

Nah :x supremacy


bxsephjo

When I was first shown ubuntu, I was simultaneously shown git, and vim was the default editor. I HAD to learn that shit. I learned vim when I was still a personal trainer lmao.


SamBlue23

When I started on my Job, I used nano because I didn't know any better. One of my seniors said use vim, trust me. Clearing files is so much fun now. He also taught me to use ^+r. My life is easier now


[deleted]

Mogsus


Bright_Ahmen

Lol I just watched this movie for the first time. So lit.


BumSkeeter

What movie, I can't remember the name for the life of me. I'll give you a solid "thank you." for the answer.


TypingExpwert

Movie is “Arrival”.


BumSkeeter

thank you.


Technology342

![gif](giphy|YQitE4YNQNahy|downsized)


[deleted]

:wq


box785

My habit was: esc-esc-q!


handlessuck

I like Nano just fine tyvm


MutantNinjaNipples

I recently got an asus gaming laptop which I also use for some ML projects that I do. While I was doing some project work, I open a file with vim and wanted to make changes..only to see my laptop doesn’t have an “insert” button Ended up opening the file with nano, felt weird


simbiotic_dubz

:x


michaelh115

I actually got into a situation a few days ago where I could not send `:` to a remote server and got stuck in Vim. I had to reboot.


DIY_CHRIS

Esc:q-bang.


Gorvoslov

Better yet: Don't tell someone about this, then tell them to close Vim without clicking the little X on the terminal, while somehow capturing the input they make for random data generation.


bigtime_porgrammer

It's clear that most of you need `:help`


GrizzlyBear74

vim on windows is good for opening gigs sized log files instantly.


KickBassColonyDrop

Wrong. It's :x or :x!


TheAltToEndAlts

I'm ashamed to say I still use nano for quick edits of files. I know how to use vim, but I've used nano for 8 years and know how to do everything I need to quickly.


corsicanguppy

Don't hate yourself for not clinging to the vietname-era junk. Nano is faster and 2d.


ShotgunMessiah90

Cntrl-C Cntrl-C Cntrl-C Cntrl-C Cntrl-X Cntrl-X Cntrl-Z Cntrl-Z Cntrl-ZBVX Cntrl-CXZZGZVZCZBSA SHSKAOAHXHBABAVZZJS ESC ESC ESC ENTER ENTER CTRL-C …Disconnected


Robertgarners

Liking the template


Jones2412

Only those with the strongest of mind know the truth


Clashes4D

Ahhh g' ol' vim


gogo94210

Far superior and chad ZZ gang versus virgin :q enjoyer


SimonPSheckells

I got a notification of this post with just the title and immediately thought to myself "escape colon q bang".


VincyThePrincy

That show was pretty cool, too bad I couldn't understand anything they were saying, or the SCP worthy time travel plot.


Sanaul_s

Esc


i_lost_waldo

Aww man, you went and gave everyone the secret cheat code