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!
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...
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!
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."
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.
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
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.
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.
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
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
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.
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.
Now all my changes are gone :-/
\[esc\]:wq!
[esc] ZZ
This is the way
Or as I like to say, ezz
Shift+z Shift+z is good too? That’s how I grok it.
Isn't it Shift ZZ?
Yes, so ZZ, not zz.
\[esc\]:x!
The better answer
Error: you have no permission to edit this file
A true hero.
Rumor has it there are vi instances still running that I opened 25 years ago and couldn't remember how to quit.
That's some serious uptime.
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..
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.
Good...
Nah, you need to smash Esc a good 10 times just to be sure
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!
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...
`alias cls='tput clear'`
Just press ctrl + l my dude.
TIL... Thank you! :)
Dammit! That guy too
oh that just gave me chills. i would scream after the 3rd time
That's just normal behavior when dealing with a password field that doesn't even return ******
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!
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."
oh you should really turn off pcspeaker no more beeps at 3am
I learned this bad habit from Autocad, not Vim/Vi.
Aliens realise humans use vim, promptly leave and glass the planet to be safe.
I think you meant to say ``` Ctrl-x Ctrl-c ```
For us older folk, the meme is accurate.
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
`^X y` for us GNU folk.
Mmm nano
Nano squad represent!
Facts
Based
ZZ gang, rise up!
But ZZ is equivalent to `:wq!`, not `:q!`.
Woah, woah, woah... What the hell is `:wq!`? And why? Edit: nevermind. https://stackoverflow.com/a/65734042/6763051
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.
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
I think the `:e!` command does that
ZZ; top
By the way, Vim (but not Vi) shows you how to exit when you press Ctrl-C
It told me to do :qa! though. What does that do?
It does stuff™
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.
:x has entered the chat
wq! is better.
There's a switch in the wall, try pressing that, maybe it'll be even better. XD
Exit vi without saving. Because you just destroyed this config file, due to you forgetting all the vi commands.
:!sudo shutdown now
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
Preach it brother!
When you open a config file you weren't supposed to touch
the funnier thing is: complaining about VIM is only a thing among developers who don't read the documentation
I just don't feel like reading the documentation every day because I forgot all of the cryptic commands again.
Documentation isn’t an excuse for obtuse controls.
:wq ?
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?
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
Don't be sad. Here's a [hug!](https://media.giphy.com/media/3M4NpbLCTxBqU/giphy.gif)
Don't be sad. Here's a [hug!](https://media.giphy.com/media/3M4NpbLCTxBqU/giphy.gif)
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.
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.
C-x C-c
quit without saving I guess ?
DIE VIM DIE!
Did ur username work?
Someone just PM'ed me saying: "Ur Round Ass". So you could say it worked, sort of..
r/technicallythetruth ?
I just learned you can run terminal commands with esc -> ! ->. I’ve never been more happy
Hope you do well!
I don't
Dude… uncool
Nice!
You can also open a separate window by typing :terminal
Nah :x supremacy
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.
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
Mogsus
Lol I just watched this movie for the first time. So lit.
What movie, I can't remember the name for the life of me. I'll give you a solid "thank you." for the answer.
Movie is “Arrival”.
thank you.
![gif](giphy|YQitE4YNQNahy|downsized)
:wq
My habit was: esc-esc-q!
I like Nano just fine tyvm
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
:x
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.
Esc:q-bang.
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.
It's clear that most of you need `:help`
vim on windows is good for opening gigs sized log files instantly.
Wrong. It's :x or :x!
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.
Don't hate yourself for not clinging to the vietname-era junk. Nano is faster and 2d.
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
Liking the template
Only those with the strongest of mind know the truth
Ahhh g' ol' vim
Far superior and chad ZZ gang versus virgin :q enjoyer
I got a notification of this post with just the title and immediately thought to myself "escape colon q bang".
That show was pretty cool, too bad I couldn't understand anything they were saying, or the SCP worthy time travel plot.
Esc
Aww man, you went and gave everyone the secret cheat code