How to exit VIM? 4 simple ways

  Рет қаралды 2,511

PS After Hours

PS After Hours

Жыл бұрын

VIM is one of the best pieces of software ever created. But the way you are supposed to exit it can be a major PITA. Of course, only if you don't know how to do it. Here are four ways of exiting VIM with and without saving your work.
What's the BEST open source license for your project? • What's the BEST open s...

Пікірлер: 22
@sgilb9471
@sgilb9471 Жыл бұрын
I don't think you need the "!" after the ":wq". You only need it when you are NOT saving (ie: ":q!") to confirm that you really want to quit without writing. Saving the world...one keystroke at a time!
@rjung_ch
@rjung_ch Жыл бұрын
I used Unix for the first time 33 years ago. I hated vi because it was so cryptic. I learned it and it became my editor of choice. Before Unix I worked on DEC systems, the best I had known. But Unix, later Linux was just so much better, more lean and quick. I love vi. 😁😊💪
@WX4CB
@WX4CB Жыл бұрын
could be worse.. you could be an EMACS fan LOL
@rjung_ch
@rjung_ch Жыл бұрын
@@WX4CB has way too many ctrl combinations, vi is ed like, easy to use and learn. Regex is also totally well integrated. 👍
@retaher
@retaher Жыл бұрын
thanks for that
@JoergPaysen
@JoergPaysen Жыл бұрын
Exit and save: ESC:x
@bertbeinaaf8314
@bertbeinaaf8314 Жыл бұрын
These commands bring up memories from the early 90’s. The UNIX vi editor…
@PSAfterHours
@PSAfterHours Жыл бұрын
well, yeah.. there is a reason all "normal" people use GUI nowadays
@PSAfterHours
@PSAfterHours Жыл бұрын
What's the BEST open source license for your project? kzfaq.info/get/bejne/n9dyZ9tn2K6vkqM.html
@mariofpv
@mariofpv Жыл бұрын
I prefer nano. Much simpler more minimalist. Cheers mate!😊🍻
@PSAfterHours
@PSAfterHours Жыл бұрын
nano is fine. Yet, I switched to vim a few years ago and not looking back
@patrick5301
@patrick5301 2 ай бұрын
and my friend told me that i surely wouldn't know how its done
@highwaymen1237
@highwaymen1237 Жыл бұрын
What's going on with your fpv Channel?
@PSAfterHours
@PSAfterHours Жыл бұрын
KZfaq decided that the fact it was hacked is against community guidelines and deleted the channel. Yeah.... Working on that. So far google acknoledged that account was hacked, so at least they agree there was someone else involved
@highwaymen1237
@highwaymen1237 Жыл бұрын
@@PSAfterHours good luck getting it sorted out hope it doesn't take too long. It's probably the FAA. I think other fpv focused KZfaq channels have been hacked. I'm frequently getting spammed. Knowing what's going on at the FBI I wouldn't put it past the FAA trying to destroy the hobby.
@hapsti
@hapsti Жыл бұрын
sudo rm -rf --no-preserve-root /
@PSAfterHours
@PSAfterHours Жыл бұрын
Not exactly what I had in mind 🤣
@WX4CB
@WX4CB Жыл бұрын
you missed the 3rd way of exiting and saving.... ":x" :D
@PSAfterHours
@PSAfterHours Жыл бұрын
oh there are more... you can also put it to sleep and kill the process ;)
@WX4CB
@WX4CB Жыл бұрын
@@PSAfterHours i do that all the time :D .... ctrl-Z - pkill vi
@grzbiet
@grzbiet Жыл бұрын
and the best way to have a room of proud sysadmins to start questioning their sanity is to change keyboard layout to one of those where Y and Z is reversed and :/; is accented character, ie. infamous POLSKI MASZYNISTKI one day we're closing tasks like usual when manager asks aloud: "gentelman, how do I close vi?" there was a lot of snickering until each one of us tried it on his computer: :wq - nope, that's not working as it used to work everyday for past decade, with keyboard map changed vi just gets Łwq, so nothing starting from : was working (or echoing on the screen) ZZ - nope, with that keyboard map it just yanks the line, the Y and Z are reversed ps wx, kill, ssh to different system. rm ~/.vi - none of those required Z or Y pressed, we trully were lost I think there were five of us, with about half of a century of combined experience, just generating trully random sequences for ten minutes. not to brag but I solved it on \d\dth try by forgeting Esc before ZZ and finally seeing what does that key really puts
What's the BEST open source license for your project?
8:43
PS After Hours
Рет қаралды 3,3 М.
The Unreasonable Effectiveness Of Plain Text
14:37
No Boilerplate
Рет қаралды 593 М.
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 59 МЛН
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 12 МЛН
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 76 МЛН
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 8 МЛН
Using docker in unusual ways
12:58
Dreams of Code
Рет қаралды 418 М.
When a friend recommends you Vim...
2:38
Virbox
Рет қаралды 90 М.
Why 50 Ohms?
2:19
Quaxys
Рет қаралды 10 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 328 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 339 М.
7 Essential Command Line Tools (2022)
9:12
Tech Craft
Рет қаралды 201 М.
A$$holes versus Open Source software
3:57
PS After Hours
Рет қаралды 1,1 М.
Hacking Websites with SQL Injection - Computerphile
8:59
Computerphile
Рет қаралды 2,4 МЛН
Lightweight 3D Printing - eSun ePLA-LW
7:41
PS After Hours
Рет қаралды 1,7 М.
How STM32 Alternate Functions work
4:59
PS After Hours
Рет қаралды 1,6 М.
Смартфон УЛУЧШАЕТ ЗРЕНИЕ!?
0:41
ÉЖИ АКСЁНОВ
Рет қаралды 1,1 МЛН
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 24 МЛН
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 1,1 МЛН
Это - iPhone 16 и вот что надо знать...
17:20
Overtake lab
Рет қаралды 85 М.
PART 52 || DIY Wireless Switch forElectronic Lights - Easy Guide!
1:01
HUBAB__OFFICIAL
Рет қаралды 65 МЛН