:q! this meme, man
You forgot to his escape twice first. You’re in insert mode sir.
META-c. My hands on meta and ESC is all the way over there
Real nerds use Ctrl [ instead so they don’t leave home row.
More like <esc><esc><esc><esc><esc><esc><esc><esc>… Just in case
More like <esc><esc><esc><esc><esc><esc><esc><esc>… Just in case
MY PEOPLE!
ZZ, more often than not.
:q!<CR>
is equivalent toZQ
This whole thread. I think you’re just hitting random keys.
I think you mean to say
![4Zæ]>§??+
^Zkill -9 %1
is the only way.kill -9 -1
if that doesn’t work.
That meme clearly comes from an emacs fanboy.
emacs
I actually don’t know what emacs means. I only remember having struggles in understanding anyone who likes vim, because it mostly just confused me. But Probably its just what you are used to. The Meme is still funny, though.
For my vim journey it was the draw of being able to quickly navigate and manipulate text without ever needing my hands to move away from the home row on the keyboard, and being willing to put in the time and effort to push past the learning curve.
I first settled on vim as a teenager because I was a fan of… performing surprise penetration tests.
It defaults to opening files read-only, so you don’t have to worry about the access/modified time on the file changing if you open one for… science reasons.
It comes from the words “Eight Megs And Constantly Swapping”.
Yeah, the name hasn’t aged well…
It’s about 80MB on my machine right now… What is an absurd amount of memory for an empty editor, but I had to sort top by process name because there are some 10 pages of stuff that reserve no memory at all, 2 where it goes from non-zero to 100MB, and a fucking lot of pages of stuff using more than 100MB.
WTF is my computer doing with all that?
Just keeping a single frame buffer image can take tens of megabytes nowadays, so 100MB isn’t all that much. Also 64-bit can easily double the memory consumption, given how pointer-happy the ELISP data structures can be (this is somewhat based on my assumptions, I don’t actually know the memory layouts of the different Emacs data structures ;)).
But I don’t truly know, though. If I start a terminal-only Emacs without any additional lisp code it takes “only” 59232 kilobytes of resident memory. Still more than I’d expect. I’d expect something like 2 MB. But I’ll survive.
vim is a little hard to get into, but from there its benefits pay off with lots of features. On the other hand there is emacs, with an even steeper learning curve (*cough* long inconvenient button combos!), but it’s considered so powerful, some say it’s a separate operating system.
They say Emacs is an amazing OS, with the best calendar, to-do list, email client, etc. Just missing a good text editor.
Guess what, you can run Vim inside Emacs inside Vim inside Emacs now!
Viper for Emacs has been a thing for decades.
emacs has a steeper learning curve? You can
M-x <type stuff> tab
to figure out how to do stuff, which is easier than Vim for learning IMO:help <type stuff> tab
It’s much harder, you’re right! :P
Don’t discount the possibility that some people that use vim, are old enough to remember using vi, over a modem connection. When you know the keyboard shortcuts it can be a lot quicker too even now.
Vi is incredibly snappy when it came to commands.
Want to save? :w
Want to quit? :q
Want to save and quit? :wq
Very elegant. GUI WYSIWYG doesn’t come close when it comes to commands.
Man, this comment made me feel a little embarrassed at myself. I saw the shortcuts and thought about how I have a tradition of going to the top of the file when I’m done editing and about to save/quit. I always hit the shortcut for it and think “gg boys! Good game” and then quit out of vim.
Stop judging me.
A lot of the things I’m using are generally hangovers from those low bandwidth days. I’ve opened a file and I know what I want is a way down? Not a problem 10-Page down to move 10 pages down the file without sending all that to the terminal.
What to cut the next 5 lines into the buffer? 5dd. Move to the line you want to paste to. Want to remove the next 5 characters? 5x. Often on a slow link moving your cursor along had a delay. But if you knew how far you needed to go you could do 30+arrow right to get the cursor to move directly there.
I think most are obsolete now, but I’m still used to using them out of habit mostly.
Wait, I thought we were still using vi.
Well it is. But back on unix proper it was just called vi, not vim (aliased to vi)
Depending on your distro, vi is vim aliased with the fanciness off by default.
That would be me. I still call it “vi”, default to it, and use “less” to preview files because I do almost everything on CLI. Vi is incredibly fast and powerful once you know it like second nature. I prefer vi over most, but the learning curve is a beast.
It gives me a little burst of glee every time I ci" or ct in a clever way. If I ever spend the time to learn registers I’ll be unstoppable
The editor so good people never learn to leave it.
Take my angry upvote
Neovim is awesome
My entire first year as a network student was a Bernie meme: “i am once again asking, how do i exit vim?”
I litterally LOL’d! :D
vim is so last year. have you people heard of GitHub’s new ‘Atom’ IDE? I think it’ll be the next big thing 😊
Vim keys in vscode for the win, I’m dead serious
An IDE written in Electron?? What a terrible idea! Nobody would ever be stupid enough to let something like that take off…
I legit code in nano.
deleted by creator
Ah, a fellow masochist.
Wait there’s nano? I’ve been using ed. /jk
But why?
Did you start with busybox and just decide to stay there?
Like, often?
deleted by creator
alias vim='sudo rm -rf / --no-preserve-root'
You ought to be punished for your transgressions
That prompts in most modern distros. You should pipe it to sshpass.
I’ve been using Linux professionally for a couple of decades and using it altogether since like 1996. I never knew about the
timeout
command. I’m gonna have some fun with that.I wonder if I can set someone’s shell to it…
Always -k. Ask nicely but unsheathe the katana, just in case.
They give us their ‘cures’ (neovim) while they suppress our medicine (emacs)
In a moment of weakness I configured the Visual Studio to use Vim as input method and now I don’t know how to change it back.
I’m sad to say I fell for this trap as well! Wanted to keep using vim, but I’m too old to put so much effort in maintaining my tools, when I have a self-cleaning swissknife … just… right… there.
I went to a Data and AI conference and in one of the breakout sessions, there was a guy literally taking notes in Vim.
Absolute madness!
I do it all the time. 🤪
I can navigate and organize my own notes 10 times faster than if I used most alternatives, especially with plugins like Neorg that support visually distinct markup output via concealer configs. There’s even a presentation mode.
Whewf I’m boutta out myself or something, but …
after 15 years of vim, writing (and contributing to) a host of plugins, even running custom builds with my own patches …
I basically never boot up Actual Vim anymore?? I’ve basically entirely switched to VScode + VSCodeVim. embarrassing as fuck, in some ways, but jesus christ it’s just too goddamn good.
The neovim integration, even, was fantastic. (Although I don’t use it right now, for “VSCode Remote reasons,” lol.)
I’m thinking of switching from VSC to VIM because VSC is too hungry for ressources.
I avoid to open some monorepo projects because it takes too much time and I use the Github explorer to navigate in the project.
What on earth size of monorepo is that!? iirc, we’ve got ~1Mloc of OCaml, probably another two or three times that in assorted generated code, specs, config, infra, and other languages; and my VScode-Remote definitely boots up as fast as the network connection can stand up.
Definitely faster than I can think of the first thing I want to do … ¯_(ツ)_/¯
That said, I should own up to having had an absurdly overcomplicated vim config, tons of plugins, a decade n change of customizations and patches and shit. Maybe I’ve just always had a high tolerance for a slow boot. hahaha
It’s a monorepo for around 30 micro frontend projects (Vue.js / Angular / Svelte mostly) + some libraries packages.
I don’t know what is the number of LoC but it’s medium sized frontend projects (we are ~100 developpers on this projects)
It’s a trap!
… the cleaning paste?
Well well !!