arandomthought @sh.itjust.works If they don't understand this, can we even call it intelligent life?
56 1 Replypartial_accumen @lemmy.world Maybe they use Emacs.
Bonus: I googled "emacs" to make sure I got the capitalization right for the post and Google is throwing shade:
65 1 Replyjmcs @discuss.tchncs.de Google does the opposite of "vi". Some people just like to watch the world burn.
25 0 ReplyTurnItOff_OnAgain @lemmy.world Nano forever!
14 2 Replyhemko @lemmy.dbzer0.com Holy shit lmao
7 0 Replydubyakay @lemmy.ca Maybe it's time to stop using GOOG
6 0 ReplyWillem @kutsuya.dev oof
4 0 ReplyPossibly linux @lemmy.zip OP
4 0 ReplyOctopus1348 @lemy.lol
I don't know how people get this. I tried but it didn't do this.
2 0 ReplyAurenkin @sh.itjust.works Maybe they use Emacs.
Exactly
2 0 Replyhemko @lemmy.dbzer0.com Just capitalize it EMACS and people will think you're more senior than in reality
2 0 Replyarandomthought @sh.itjust.works Well, then my point still stands.
Jk, don't hurt me please!1 0 Reply
Transient Punk @sh.itjust.works
Truth
1 0 Reply
MTK @lemmy.world I just shoot myself whenever I want to leave vim
36 0 ReplyiAvicenna @lemmy.world
You don't need to be so drastic just shut down the electricity by the main switch
15 0 ReplyGoosLife @lemmy.world I rent a place where I don't have direct access to the main switch, so what I do is I just stop paying utilities until Vim closes :)
17 0 Replyvrighter @discuss.tchncs.de you can just unplug your pc: and that way you won't incur downtime for the rest of the house.
9 0 Reply
/home/pineapplelover @lemm.ee You haven't shot yourself yet though so you're still in vim
3 0 ReplyMTK @lemmy.world You don't know!
2 0 Reply
vsis @feddit.cl
wrong: you press esc multiple times to make sure you are in normal mode.
35 0 Replytreadful @lemmy.zip
At least 3 times. 5 to make sure.
15 0 Reply
Doctor xNo @r.nf
sudo nano
28 3 Replyhemko @lemmy.dbzer0.com You shouldn't really use editor with sudo, but instead use sudoedit to edit files restricted to root user
SUDO_EDITOR=nano sudoedit /etc/fstab
This accomplishes the same function while running the text editor as unprivileged user
24 1 ReplyDoctor xNo @r.nf
Why?
Files from user: nano
Files from root: sudo nano
Files from another user: sudo nano (and if new sudo chown after)... 😂
Never had any problems with this in over 10 years... 😅😂
12 2 ReplyHuschke @lemmy.world Alternatively you could use my favorite approach, Visual Studio Code. Just open the file with it, edit it and upon saving you will be promoted if the file needs admin rights to save.
8 1 Reply
SigHunter @feddit.de
until the moment you realize that somehow you are not on your native keyboard layout and where the hell is : and ! in this weird language??!
25 2 Replylseif @sopuli.xyz ESC Z Z
10 0 ReplyJetpackJackson @feddit.de
I have done this too many times now lol, you'd think I would have learned
4 0 Reply
MacN'Cheezus @lemmy.today
"I use Arch Linux btw"
*doesn't know how to use vim
Pottery
22 0 ReplyILikeBoobies @lemmy.ca Hey!
2 0 Reply
marietta_man @yall.theatl.social ESC Z Z
Although I usually bang ESC a few times to
make sure i’m back to command mode20 0 Replylseif @sopuli.xyz you mean normal mode?
13 0 Replymarietta_man @yall.theatl.social Yes, I do.
3 0 Reply
digger @lemmy.ca
Double Z's will save and then exit. The command on until board will exit without saving changes.
8 2 ReplyAstaroth @lemm.ee yeah to exit without saving you do ZQ instead of ZZ
3 0 Reply
topinambour_rex @lemmy.world
Shouldn't be Z Z esc ? Because, you know ZZ top.
3 0 Reply
TimeSquirrel @kbin.social
Yanks power cord
17 0 Reply_cnt0 @sh.itjust.works
Great, now all my changes are lost. Thank you very much!
17 0 ReplyPossibly linux @lemmy.zip OP
Your welcome!
13 1 Replygreyhaven7 @lemmy.world wq
1 0 Reply_cnt0 @sh.itjust.works
Thanks Sherlock.
1 0 Reply
key @lemmy.keychat.org
Ctrl-z
ps
kill -9 pid
fg
12 1 ReplyWaterWaiver @aussie.zone Alternative:
Ctrl-z kill -9 %1 # Shell keeps track of job pids for you, job 1 is %1, job 2 is %2, etc fg # Not technically necessary, but it's fun to see the corpse
7 0 ReplyPossibly linux @lemmy.zip OP
killall vim
6 0 ReplyDefederateLemmyMl @feddit.nl
Reminds me of the time I brought down a whole AIX server with the
killall
command back in the 1990s.On AIX
killall
really means kill every single process.3 0 Reply
Im_old @lemmy.world Ok ok, I know it's a meme, but gentle reminder that :x is :w and :q combined (save and exit). I got taught that in high school (it was a dec unix with real vt120 terminals) and luckily for me I remembered that even if I didn't touch vi for a few years afterwards.
11 1 ReplyDasnap @lemmy.world
Funnily enough, I knew of :x before :w.
5 0 Reply
katy ✨ @lemmy.blahaj.zone
i think you mean ctrl s and ctrl x
10 2 ReplyPossibly linux @lemmy.zip OP
That didn't work
3 0 Replyselokichtli @lemmy.ml Still on it!? Are you, people, immortal? =)
1 0 Replykaty ✨ @lemmy.blahaj.zone
nano is forever
3 0 Reply
𝚐𝚕𝚘𝚠𝚒𝚎 @h4x0r.host
What is this sorcery?! I thought you had to reboot each time to exit.
8 1 Replykbotc @lemmy.world META-C :wq!
ESC is all the way over there and my hand is already on the space bar.
5 0 Replyevranch @lemmy.ca Especially as a Dvorak user CTRL-C is effortless. Reaching for ESC makes zero sense!
2 0 ReplyXTornado @lemmy.ml Not if you swapped the caps lock with ESC.
1 0 ReplyPoolloverNathan @programming.dev ALT-: wq!
Saved you a keypress
1 0 Reply
Tenthrow @lemmy.world
That's only if you don't want to save first (ahem write the buffer).
5 0 ReplyJorgelino @lemmy.ml Odds are if you don't know how to exit vim you probably don't want to save whatever you wrote in there.
9 0 ReplyPossibly linux @lemmy.zip OP
Who in there right mind would want to save a bunch of gibberish
8 0 ReplyQuazarOmega @lemy.lol ihh splqqiq:wq
Wear your mistakes proudlyq!
4 0 Reply
Venia Silente @lemm.ee
Joke's on them I'm using Emacs as an OS so when I want to exit vi I just
C-a M-exit C-r C-y
.3 0 ReplyTurious @leaf.dance But I don't want to stop.
3 0 ReplyPossibly linux @lemmy.zip OP
Oh no....
3 0 Reply
Zardoz @lemmy.world I prefer ctrl-[ instead of escape
3 0 Replyvrighter @discuss.tchncs.de That's the first one i've learned to use and I have a hard time actually using the escape key. it's just so out of the way
2 0 ReplyShareni @programming.dev it's just so out of the way
That's why you rebind caps to:
-
hold = ctrl
-
tap = ESC
Kmonad is my favourite tool for this, but there are other options.
Bonus: rebind hold ret to ctrl and you can C-[ with one hand, and it makes navigation a lot easier if you can't palm ctrl
1 0 Reply-
Astaroth @lemm.ee ZQ
2 0 Replypirrrrrrrr @lemmy.dbzer0.com [ESC] wq
2 0 ReplyCount042 @lemmy.ml ZZ
1 0 Replylinuxgator @lemmynsfw.com From phone: ssh user@server killall vim
1 0 Reply