Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "exit vim"
-
Dance like noone is watching.
Encrypt like everyone is.
Sudo like you have backups.
Tag like you're a SEO.
Vim like you know how to exit.
Ticket frontend like you're the project manager.
Commit like saying "fuck you" in the message is appropriate.
Alert like you would use console.log
Design like you know CSS.
Comment like you aren't the only dev.
Code like PHP isn't outdated.
And finally:
Try to work like you know how to quit devrant.13 -
People are complaining about how to exit vi/vim.
They have not FUCKING TRIED EXIT TELNET ON A SWEDISH KEYBOARD12 -
Stack Overflow: Helping One Million Developers Exit Vim https://stackoverflow.blog/2017/05/... ;)12
-
Left one of the demo macs at Best Buy with vim running on a terminal shell. Let's see how long it takes for them to exit vim.5
-
Stack overflow helped one million developers exit vim.
Meanwhile, my friend struggling with notepad++.4 -
- Start in command mode
- Press `i´ to edit
- Press ESC to go back in command mode
- Type in `:wq´ in command mode to save and exit
So now none of you can say that he doesnt understand vim
Thank me later22 -
It's hilarious how people complain about exiting Vim being too hard and then being proud of themselves.
Guys.. Not being able to exit a 30 year old text editor doesn't paint the best picture about your intelligence.13 -
I've been using Vim for like a year and a half, mainly because I dont know how to exit...
Just Kidding!
Ah, I miss Vim jokes3 -
Man in the event of some newcomers to the development game, those that will mostly work in the web domain or sys admins that are in training I want to offer some small advice:
Do not neglect vim
I know it might be a bitch to use at first. And I will never use it as a replacement to vs code. But fuuuuuck me I cannot count the number of times that vim wizardry has helped me when dealing with servers when dealing on a machine with windows and nothing but putty.
The thing is a lifesaver yo, and it makes for an impressive show when doing something in front of senior executives.
Learn it, love it, live by it
And exit is :q, save is :w, to copy and paste is :v then surround the text and then y to yank it and p to paste it.
:vsplit and :split are your friends and to move around splits is ctrl w and direction.
Good luck my friends. Stay classy.9 -
Favourite code editor?
Hands down, it’s actually Vim.
It’s mostly because I haven’t been able to exit it though. Actually it’s the only reason. I’m stuck. Someone please send help.9 -
Getting paid for doing nothing. Working only on my personal projects. Making a useless JS Framework that every company uses. Learning how to exit vim.
Okay, the last one may be kind of impossible.3 -
So, I'm studying computer engineering in school, so a lot of people have decided I'm the tech one in the group and come to me with all there computer problems.
I'm constantly explaining basic things about their computers, how to exit vim, why using git is a lot easier then having 100 versions of files, how to change directories from the terminal. Simple things like that and while I normally don't mind, all these people are also in computer engineering and should really know all this stuff too.8 -
Top 5 biggest questions
1 What is the universe made of?
2 How did life begin?
3 Are we alone in the universe?
4 How to exit vim?
5 Why do we dream?8 -
Oldie but goldie:
"I started using vim a while ago and haven't stopped ever since. Mainly because I don't know how to exit..."4 -
World's best random string generator
Open a vim session in front of a designer and tell him to exit 😂😂1 -
Today an intern accidentally opened vim and couldnt exit it. So she came by to ask how to get out of that editor.
My response: just hit escape and then ":q".
Turned out her escape key didnt work so she had to use an onscreen keyboard and she said there are about 5 dead keys on her keyboard for 2 years now...
How does one work with a broken keyboard?
And is there another way to exit a "mode" in vim than pressing escape?13 -
I'm looking at one of my coworkers trying to exit vim for around 20 minutes now. I think she's not asking for help because I already explained to her vim modes and showed her some basic stuff. Should I wait for her to give up and ask for help or just tell her now?8
-
@JoshBent and @nikola1402 requested a tutorial for installing i3wm in a windows subsystem for linux. Here it is. I have to say though, I'm no expert in windows nor linux, and all I'm going to put here is the result of duckduck searches, reddit and documentation. As you will see, it isn't very difficult.
First things first: Install WSL. It's easy and there's a ton of good tutorials on this. I think I used this one: https://msdn.microsoft.com/en-us/...
Once you got it installed, I guess it would be better to run "sudo apt-get update" to make sure we don't encounter many problems.
Install a windows X server: X is what handles the graphical interface in linux, and it works with the client/server paradigm. So what we'll do with this is provide the linux client we want to use (in this case i3wm) with an X server for it on windows. I guess any X server will do the work, but I highly recommend vcXsrv. You can download it here:
https://sourceforge.net/projects/...
for i3 just "sudo apt-get install i3"
Configurations to make stuff work:
open your ~/.bashrc file ("nano ~/.bashrc" vim is cool too). You'll have to add the following lines to the end of it:
"""
export DISPLAY=:0.0 #This display variable points to the windows X server for our linux clients to use it.
export XDG_RUNTIME_DIR=$HOME/xdg #This is a temporary directory X will use
export RUNLEVEL=3
sudo mkdir /var/run/dbus #part of the dbus fix
sudo dbus-daemon --config-file=/usr/share/dbus-1/system.conf #part of the dbus fix
"""
Ok so after this we'll have a functional x client/server configuration. You'll just have to install your desktop enviroment of choice. I only installed i3wm, but I've seen unity and xfce working on the WSL too. There are still some files that X will miss though.
*** Here we'll add some files X would miss and :
With "nano ~/.xinitrc" edit the xinitrc to your liking. I only added this:
"""
#!/usr/bin/env bash
exec i3
"""
Then run "sudo chmod +x ~/.xinitrc" to make it an excecutable.
Then, to make a linking file named xsession, run:
"ln -s ~/.xinitrc ~/.xsession"
Now you'll be able to run whatever you put in ~/.xinirc with:
"dbus-launch --exit-with-session ~/.xsession"
There's a ton of personalisation to be done, but that would be a whole new tutorial. I'll just share a github repo with my dotfiles so you can see them here:
https://github.com/DanielVZ96/...
SHIT I ALMOST FORGOT:
Everytime you open any graphical interface you'll need to have the x server running. With vcXsrv, you can use X launch. Choose the options with no othe programs running on the X server. I recommend using "one window without title bar".10 -
If you're ever feeling unskilled at development, just remember:
One of the most famous questions on Stack Overflow is "how to exit vim?"
Jk, Vim's a bitch.2 -
Guess who just taught his wife how to commit, push, some command lines, and how to exit vim?
Also, I had to teach her over FB messenger.4 -
Git for Windows just dropped me in vim to edit my commit message and I genuinely had to Google how to save and exit...
I guessed right, but I had to check just in case 😐1 -
I don't get all the "Can't exit vim" jokes.
IT'S NOT THAT HARD!
Its (esc) : wq to save and exit
And
(esc) : q! to exit without saving.
Just read vimtutor.
Gosh10 -
VIM! ViM! vim! Vi Improved! Emacs (Wait ignore that one). What’s this mysterious VIM? Some believe mastering this beast will provide them with untold mastery over the forces of command line editing. Others would just like to know, how you exit the bloody thing. But in essence VIM is essentially a command line text editor at heart and it’s learning curve is so high it’s a circle.
There’s a lot of posts on the inter-webs detailing how to use that cruel mistress that is VIM. But rather then focus on how to be super productive in VIM (because honestly I’ve still not got a clue). This focus on my personal journey, my numerous attempts to use VIM in my day to day work. To eventually being able to call myself a novice.
My VIM journey started in 2010 around the same time I was transiting some of my hobby projects from SVN to GIT. It was around that time, that I attempted to run “git commit” in order to commit some files into one of my repositories.
Notice I didn’t specify the “-m” flag to provide a message. So what happened next. A wild command line editor opened in order for me to specify my message, foolish me assumed this command editor was just like similar editors such as Nano. So much CTRL + C’ing CTRL + Z’ing, CTRL + X’ing and a good measure of Google, I was finally able to exit the thing. Yeah…exit it. At this moment the measure of the complexity of this thing should be kicking in already, but it’s unfair to judge it based on today’s standards of user friendly-ness. It was born in a much simpler time. Before even the mouse graced the realms of the personal computing world.
But anyhow I’ll cut to the chase, for all of you who skipped most of the post to get to this point, it’s “:q!”. That’s the keyboard command to quit…well kinda this will quit the program. But…You know what just go here: The Manual. In-fact that’s probably not going to help either, I recommend reading on :p
My curiosity was peaked. So I went off in search of a way to understand this: VIM thing. It seemed to be pretty awesome, looking at some video’s on YouTube, I could do pretty much what Sublime text could but from the terminal. Imagine ssh’ing into a server and being able to make code edits, with full autocomplete et al. That was the dream, the practice…was something different. So I decided to make the commitment and use VIM for editing one of my existing projects.
So fired the program up and watched the world burn behind me. Ahhh…why can’t I type anything, no matter what I typed nothing seemed to appear on screen. Surely I must be missing something right? Right! After firing up the old Google machine, again it would appear there is this concept known as modes. When VIm starts up it defaults to a mode called “Normal” mode, hitting keys in this mode executes commands. But “Insert” entered by hitting the “i” key allows one to insert text.
Finally I thought I think I understand how this VIM thing works, I can just use “insert” mode to insert text and the arrow keys to move around. Then when I want to execute a command, I just press “Esc” and the command such as the one for saving the file. So there I was happily editing my code using “Insert” mode and the arrow keys, but little did I know that my happiness would be short lived, the arrow keys were soon to be a thorn in my VIM journey.
Join me for part two of this rant in which we learn the untold truth about arrow keys, touch typing and vimrc created from scratch. Until next time..
:q!4 -
Interviewer: Tell me something interesting about yourself.
Me: I know how to exit Vim.
Interviewer: We are done. You are hired.
😂😂😂2 -
Today on incompetent profs & classmates...
Dumb student forgets to exit vim and rewrites program 3 times before calling d prof
for help
I ask the prof for approval to use an IDE or a text editor in lab and she has no clue what an IDE is. I installed atom just as she left.
Another kid fooled into thinking web dev has no future.
Apparently I can't use laptop in class to execute programs as "other students may be at loss" i mean wtf that's their fkin problem why do I have to suffer.
Student questions unix prof about the file size limitation in fat32. She had a poker face.
Prof gives "hello world" program to sophomores. Nice.14 -
So one of my coworkers is making a tutorial on how to use a terminal, and he has a section on exiting vim, he must be a god, he can exit vim 😂
-
"How to exit the Vim editor?" hit 1,000,000 view milestone and a stackoverflow guy wrote a blog article about it with some neat facts. A good read imho.
https://stackoverflow.blog/2017/05/...2 -
Y'all Vim (anti)fanboyz be like "ha! try to exit Vim!"
And then there's me, Emacs fanboy... my first shortcut was to undo a change - Ctrl+Z. Guess who looked at the monitor like if he got a wet slap?
Note: it minimizes the window and I blinked right in that while. -
I learned to exit vim, and got happy.
Server crashes, i boot into rescue mode and shit. It forces me to use vim as the texteditor, because fuck nano i guess.
Additionally, the fucking buttonboard layout changed to english instead of danish, which results in i have no fucking clue where which characters are.
Im dead.4 -
Let's say we use vim because every "cool" developer says they use it. But in reality, we barely know how to exit it.1
-
at this point everyone knows how to exit vim. enough with this joke, honestly. snakeksuejesdjkdowksheuiwwmshshsiwkwlwkdjehdufndhelpmeiwrotethisinvimandidontknowknowhowtoexitvimandimstuckpleaseehsjsnenbdjdnejdjskwkjsjxkwksiwuwhwbbsdn7
-
I did it! I learnt vim!
...
Oh wait, how do you exit again?
This is how it feels with me and vim, every time I think I know it, it turns out there's a whole batch of shortcuts I had no idea existed :"(5 -
How do you generate a random string? ... Put a web designer in front of VIM and tell him to save and exit.2
-
Ok. that made a full circle.
I needed for ONCE to manually do git things.
(There is a plugin in V which wil lrecompile SCSS to CSS if CSS file is deleted, I want to comit delete).
WHY DO I HAVE VIM ON MY WINDOWS ????
And most importantly, how do I exit it ?27 -
bro look how cool i am haha lol i know java c c# angular react and php lol haha infact bro i created couple compilers haha lol bro vscode bro more like vssucks lol i use Google Docs for coding haha bro what is windows i use Ubuntu lol for that alpha sigma grindset life haha lol just update 1000 packages a week bro i play with the bootloader like messi plays football bro haha bro i can't exit vim bro i basically stay in it haha lol bro i know all about AI haha LLMs haha im taking an inteview, a shit and solving complex neurological simulations at once bro haha i wear dev related tshirts haha lol bro my house is built on Alexa bro haha ALEXA TURN ON THE LIGHTS see how cool it is bro haha i use OAuth everywhere bro to gain access to my toilet seat haha lol my thumbs hurt so bad lol bro cuz I code all day long bro what are weekends bro I never take leaves bro haha have to stay on that sigma side hustle culture right haha look how many stickers i have on my laptop haha im so cool haha lol.
But I am lonely and go online to tell people how cool I am from my mother's basement.5 -
The new MacBooks look so nice. And Mojave is pretty nice, and dark theme! And the touch bar! The price is quite high but for the first time I'm actually debating getting one... Almost. But:
Why no escape key apple! You were so close! A physical escape key at the cost of your touch bar being 1 inch smaller! Is that too much to ask!
Many programmers use Mac. I can see why, it's a bsd variant, it's almost a Linux box except it's supported and accepted by the non-geeks of the world.
Many programmers use Vim! It's great!
So it stands to reason that a "not insignificant" amount of Mac users use Vim. Why would you do this to us? Or at least offer a "Vim model! With physical escape key, some nice out of the box vim buttons for the touch bar, a greatly inflated pricetag... Yknow, the works!" But nothing?! You almost had me apple.6 -
*First time using Vim*
Me - Yay I am excited to open file in vim
- Vim test.py
*Make some edit, I mean Just changing variables name :P*
Me - alright it's done, let's exit from it
Me - wait how I can get out from it?
Google's it
Me - haha alright let's do it again
:q
Didn't Work
Me - hmm why tho?
-Aah I didn't saved it
:wq
-You can't save this existing file
Me - WHY THO?!
me - alright Calm down it's first time
Spamming bot Activated
:q
:wq
:qq
:we
Me - OMG ! (╯°□°)╯︵ ┻━┻
- fine let's do it last time
:q
*For more options type vim --h
Me - ಠ︵ಠ
*Next day*
Welcome, I am cortana11 -
Worse than seeing people that are not familiar with vim trying to exit it, is people that want to save a file and press Ctrl + S7
-
!rant vim
As i've seen a lot of rants about can't close vim type so I searched and found this in book does it work or not .
Try these: What to Type What it does
:q Quit the current window (or editor if you are out of windows) if there are no unsaved changes.
:q! Quit the current window even if there are unsaved changes.
:qa Quit all windows unless there are unsaved changes.
:qa! Quit all windows even if there are unsaved changes.
:wq Save changes and quit the current window.
ZZ Save changes and quit current window
If you can't get out of vim, you should check to be sure the caps lock is OFF, and press the escape button. If it feels good, press it a couple of times. If it beeps, you know that you've escaped enough. Then these exit commands should work. -
Me: Baby, I'll do anything you want.
She: I want to exit Vim. Please hel......*me interrupting in between*
Me: Except that, bitch.1 -
I have no clue if this has been posted here already. It probably has plenty of times but damn, I've been laughing for the past 10 minutes now and that's rare.
https://github.com/hakluke/...2 -
Sleeps at 4AM
Wakes up at 1PM
My Mind: Ready to code again.
Also me: Why not learn to code with vim. I think it's about time
Vim: I dare you to exit Motherfucker4 -
I cant believe im actually facing a problem where i cant exit vim. I dont know how. I thought this was just a joke/meme about exiting vim. This shit was real the whole time??!!!6
-
The best ones are in my opinion the ones that are easy to use and don't need a manual to exit(i look at ypu emacs). This is a list of tools that i use only if nothing else is available:
- nodejs directly
- emacs
- vi/vim
- rpm1 -
Why do people hate on VIM so much? It’s easy to exit one you understand the different between command and edit mode.5
-
How to generate a random string?
Put a first year computer science student in Vim and ask them to save and exit.3