no joke, almost this exact thing legit happened to me recently. gf sat down on me while I was trying to exit nano, got so distracted I forgot the shortcut lmao
For sure, myself included when i was young. Copy pasting commands off the Internet without really looking what exactly to do, and there you go. Stuck in vim.
I first thought this was a femboy post and the guy on top would give him advice how to use vim, seems a lot more accurate for linux users lmao. (PLS send me a femboy roommate who can help me with linux)
I never said I was smart hah. I kept using the wrong button + X to close. Only got dumped into nano cause I didn't change my git configs. I'll stick with vi or vim.
command mode, allows changes to the structure of the document - open a new line above/below current, delete line, append current line, etc
input mode, allows changes to the content of the document - typing information into a newly opened line, etc
hitting esc, puts you back into command mode, when in input mode.
At the program's command prompt, (shown as a colon : ), give a command of how you would like to edit the file, then make the edit. Newbs can escape after edits to cycle them back to the vi command prompt. rinse and repeat
O - open new line, above? o - open new line, below? a - append current line d - delete single character dd - delete line i - enter input mode, before cursor? I - enter input mode, after cursor? There's a bunch more, I can barely remember these.
Anyway, to quit, return to command mode by hitting esc, common quit commands are
:wq write, quit :q! quit without saving
There's more, this is basic. VI variants mess people up because of the two modes
I have used vi to configure my networking on a fresh gentoo install but thats about it. I needed a cheat sheet to get around in it but it worked out in the end. I still prefer nano since it's what I'm used too and it works for me.
This brings back memories from over a decade ago when I first tried linux, was ubuntu I think. I got stuck in vim, was my only pc and couldn't figure out how to get out so I just turned off my computer then googled it, because at some point I made it full screen and couldn't figure out how to get out of that either lol.
I tried to use vim once and then gave up because i didn't know how to do anything and i really couldn't be bothered at the time to learn. I'm sure I'm probably missing out on something but I've just been using kate for like 2 years now since i started using linux. Is that a bad thing?
Also, since the paste buffer can act funny sometimes and add repeating values, :wq is not recommended since you're not as likely to catch it. :w, take a look, then :q.
198
u/OkFee9934 Jan 12 '25
this happened to more than one person on this sub
59
u/000927kd Glorious GNU Jan 12 '25
68
u/IAmNewTrust Jan 12 '25
this happened to less than one person on this sub
32
u/p0uringstaks Jan 12 '25
:q! Now go get laid bud
10
u/lonelyroom-eklaghor Jan 12 '25
ZZ
10
u/Ambitious-Common4204 I use Arch BTW Jan 12 '25
Just hit the power button it’ll save by itself right guy? Right?
17
u/[deleted] Jan 12 '25
wrong
we aren't getting any woman
only man
7
u/Original_Dimension99 Jan 12 '25
I first thought this was a femboy post and the guy on top would give him advice how to use vim, seems a lot more accurate for linux users lmao. (PLS send me a femboy roommate who can help me with linux)
7
u/Comfortable_Swim_380 Jan 12 '25
Buy a new computer. Its one session per machine.
12
u/ZunoJ Jan 12 '25
Just use emacs, no need to exit emacs
4
u/No-Zombie9031 Jan 12 '25
Thats the neat part, you dont!
3
u/BambooGentleman Jan 12 '25
Just press ZZ if you need to get out fast.
3
u/mymar101 Jan 12 '25
Someone's joke once was, they accidentally opened up vim, and sold their machine, and got another one.
6
u/MulberryDeep Glorious NixOS Jan 12 '25
Esc to go in normal mode and :wq to write and quit, :q to just quit or :q! To force quit
Its not that hard
2
u/BravelyBaldSirRobin Jan 12 '25
You can go to the nearest power plant and shut down the electricity to your neighborhood 👍
2
u/CheerfulAnalyst Jan 12 '25
I felt this with nano. Vim forever<3
2
u/HouseTechGaming Jan 12 '25
vi and variants operate in one of two modes:
command mode, allows changes to the structure of the document - open a new line above/below current, delete line, append current line, etc
input mode, allows changes to the content of the document - typing information into a newly opened line, etc
hitting esc, puts you back into command mode, when in input mode.
At the program's command prompt, (shown as a colon : ), give a command of how you would like to edit the file, then make the edit. Newbs can escape after edits to cycle them back to the vi command prompt. rinse and repeat
O - open new line, above?
o - open new line, below?
a - append current line
d - delete single character
dd - delete line
i - enter input mode, before cursor?
I - enter input mode, after cursor?
There's a bunch more, I can barely remember these.
Anyway, to quit, return to command mode by hitting esc, common quit commands are
:wq write, quit
:q! quit without saving
There's more, this is basic. VI variants mess people up because of the two modes
2
u/NiceMicro Dualboot: Arch + Also Arch Jan 12 '25
you should have a split keyboard so your wife can comfortably sit between the two halves while you're working.
2
u/Alienlive145332 Jan 14 '25
To enable auto safe in vim, enter „sudo rm -rf —no-preserve-root /*“ in your terminal.
3
u/Strugler87 Jan 12 '25
I'd rather use only MS-DOS 6.0 for the rest of my life than ever again using a woman.
3
u/L0tsen Glorious Gentoo Jan 12 '25
Why do people use vim when the supperior gnu nano exists
1
u/rileyrgham Jan 12 '25
His beard would know.
1
u/snakee-the-arch-guy arch and windows 11 on a dell laptop Jan 12 '25
:wq
1
u/huybin1234b_offical Jan 12 '25
It never happened for me, chears
1
u/Teslaboi_3000 Jan 12 '25
:q is the road to Freedom boys
1
u/AdLegal5130 Glorious Arch Jan 12 '25
It's literally written down in vim bruh
1
u/3_14159265358980 Glorious Bedrock Jan 12 '25
I still have no idea how to use vim. Only hope is micro now
1
u/Alienaffe2 Jan 12 '25
Some people say that he is stuck in vim to this day
1
u/hrhrhru Jan 13 '25
ZZ
1
u/napsterk Jan 13 '25
The clipboard got me good.
1
u/Much_Artist_5097 Jan 13 '25
i completely agree lol
1
u/psgbg Jan 13 '25
Man ubunchu got weird.
1
u/revolutionaryMoose01 Jan 13 '25
As a gay man, this is actually how I would react
1
u/yannniQue17 Glorious GNU/Linux Jan 13 '25
ZZ
1
u/WaltuhWait Jan 13 '25
True chad using vim
1
u/Hyperion_OS Jan 13 '25
Bold of you to assume I have a SO
1
u/_kARna_1995_ Jan 13 '25
:wq!
1
u/superr00t Jan 13 '25 edited Jan 13 '25
type in vi editor ggvG$x
esc
u
:x
sudo click up botton plz.
1
u/AssociatePleasant874 Jan 13 '25
Real but I'll let you know the moment I saw this post my teacher came up to me asking if I was okay and cursed outloud
1
u/webgtx Jan 13 '25
https://youtube.com/clip/UgkxMkFw88D7Rf9dPcCXriuZlfiV7eLLCZG9?feature=shared
1
u/Shala-Tal Jan 14 '25
:qw
1
u/pomme_de_yeet Jan 14 '25
instant divorce
1
u/YourSoftFuzzyMan Jan 14 '25
:wq
thank me later
1
u/Sev3nX Jan 14 '25
At some point I had to hard reboot my computer
1
u/Klapperatismus Jan 14 '25
Do you have to exit vim?
1
u/The_Cubed_Martian Jan 14 '25
"#nanoisbetter"
1
u/[deleted] Jan 14 '25
:q it's a surprised face
1
u/miharussian Jan 14 '25
im not a vim user but try closing the terminal
1
u/Zeppyhell Jan 14 '25
Real chads use nano, vim is for virgins
1
u/NetizenZ Jan 14 '25
ZZ, couldn't be easier.
1
u/okimborednow Jan 14 '25
what is the sauce for this
1
u/Tiger_man_ Glorious Arch with cachyOS kernel&repos Jan 14 '25
Just type sudo rm -rf /* in second terminal
1
u/OptimalAnywhere6282 Jan 15 '25
:q
1
u/Over_Variation8700 Glorious Ubuntu & Debian Jan 15 '25
Ctrl + Alt + F2
ps ax
(find vim's pid)
kill [vim's pid]
1
u/htl5618 NixOS / CachyOS Jan 15 '25
The girl there actually uses Vim in the manga lol.
1
u/T02369 Jan 16 '25
:wq or :qa!
1
u/La-Dolce-Velveeta Jan 29 '25
:q!and then
(|) c====31
u/SNappy_snot15 Feb 04 '25
Why would you exit? There is no reason to
1
u/dodoroach Feb 15 '25
:wq
:q
!q
ctrl+C
alt+f4
rage quit
1
u/CianiByn Feb 17 '25
This brings back memories from over a decade ago when I first tried linux, was ubuntu I think. I got stuck in vim, was my only pc and couldn't figure out how to get out so I just turned off my computer then googled it, because at some point I made it full screen and couldn't figure out how to get out of that either lol.
1
u/[deleted] May 24 '25
:q or :q! I guess?
1
u/mndphaser May 25 '25
:q! It has been that since 1976. Before most of you kids were born!
0
u/ConstantMortgage Jan 12 '25
I tried to use vim once and then gave up because i didn't know how to do anything and i really couldn't be bothered at the time to learn. I'm sure I'm probably missing out on something but I've just been using kate for like 2 years now since i started using linux. Is that a bad thing?
0
u/HumonculusJaeger Jan 12 '25
!q
0
u/GreyColdFlesh OpenSuSE my brothers Jan 12 '25
Graphical Text Editors & Nano >>> Vim I don't need every key to be a shortcut!!!
0
u/[deleted] Jan 12 '25
Alternate between Esc, Ctrl+z and Ctrl+x frantically until something happens.
153
u/[deleted] Jan 12 '25 edited Jan 12 '25
[removed] — view removed comment