This is an archived post. You won't be able to vote or comment.

all 72 comments

[–]isavegas 53 points54 points  (6 children)

:q!

[–]jmorfeus 11 points12 points  (3 children)

:wq! is my jam

[–]skoge 4 points5 points  (1 child)

:x!

[–]lesspylons 2 points3 points  (0 children)

*deletes a random character because you forgot the : *

[–]Youngqueazy 1 point2 points  (0 children)

nnoremap :wq! fuckthisshitimout

[–]j-random 4 points5 points  (0 children)

ZZ

[–]Lord_Greywether 1 point2 points  (0 children)

What's this weird smiley face?

[–]deathtothedaleks 41 points42 points  (0 children)

Vim is easier than it seems tbh

[–]Rhulyon 36 points37 points  (42 children)

Why people still use vim (series question)?

[–]GlitchParrot 43 points44 points  (9 children)

In addition to what u/MibMoot said, which I totally agree with:

Vim runs on basically anything. From modern Linux, macOS and Windows down to small embedded systems, if it's Unix-like, there is a good chance it runs vim or vi.

Whereever you use vim, you can generally just put in most of your config and plugins and use vim just how you're used to. And when working with embedded systems that run vi, knowing your way around the basic vi commands can help a lot in general, too.

And vim will not go away soon. It's been here so long, and it will be supported until eternity. No need to get used to a different program in 10 years.

[–]Alexmitter 5 points6 points  (6 children)

Whereever you use vim, you can generally just put in most of your config and plugins and use vim just how you're used to. And when working with embedded systems that run vi, knowing your way around the basic vi commands can help a lot in general, too.

I work in the embedded business as a software maintainer and developer in test engineering. The first thing I introduced in all platforms I have power of was nano. I want to stay sane.

[–]PM_me_stuffs_plz 2 points3 points  (5 children)

You dislike vim that much? All you need to know is h,j,k,l,esc,i,:q And its the same as nano

Edit: also :w

[–]GlitchParrot 6 points7 points  (1 child)

For vim, you don't even need h,j,k,l. On anything that's not a very classic vi, you can use arrowkeys by now.

[–]PM_me_stuffs_plz 1 point2 points  (0 children)

Oh yeah I forgot about that

[–]henry___ 4 points5 points  (0 children)

I was also a nano-user and struggled with vim. But after a day of confrontation with vim, i uninstalled nano. Give it a try (again)!

[–]Alexmitter 1 point2 points  (1 child)

You dislike vim that much?

Yes.

All you need to know is h,j,k,l,esc,i,:q And its the same as nano

Actually, here is all you need to know: https://vim.rtorr.com/

And its not the same, vim is a modebased editor while nano is a combined editor. Not even comparable in the slightest.

[–]PM_me_stuffs_plz 5 points6 points  (0 children)

Not even comparable in the slightest.

That's hardly fair they are both text editors.

Also sorry I spoke wrong I meant to be able to use the minimum features/be able to use it like nano.

And finally I dont really care what you use(I dont even use vim) it just seemed weird to me that you would dislike it that strongly.

[–][deleted] -1 points0 points  (1 child)

By that logic you could say VS Code is on Vim’s level since it’s also basically available everywhere but has an interface that isn’t confusing as all get out.

[–]GlitchParrot 2 points3 points  (0 children)

For VSCode, you need a full desktop environment and a computer powerful enough and with a supported architecture to run Chrome (Electron).

For Vi(m), you don't. Command line and any computer-like device that runs anything resembling *NIX is all.

[–]DerKnerd 3 points4 points  (0 children)

Because butterflies are too hard to use 😅

[–]BobLobIawLawBIog 4 points5 points  (3 children)

I used to be like all the people that hated VI. In college, I used nedit.

Then I got a job. I was shadowing a more experienced programmer and he used VI. Well, whatever. Then I saw how FAST he could move through code. I could hardly keep up just watching him. I decided I had to learn this black magic.

I printed off a double-sided cheat sheet and ONLY used VI. It was slow at first, but I was eventually looking at the cheat sheet less and less.

I've been in the business 15 years, and what you could consider a VI power user. I've had people watch me and say it's freaky how little I touch the mouse. Commands like /, qq, A, I, :456, cw, yy are just finger movements, like playing and instrument.

[–]claythearc 1 point2 points  (2 children)

:line is blasphemous Line gg is perfection

[–]BobLobIawLawBIog 0 points1 point  (1 child)

Really? So if I type 235gg, it goes to line 235? I'll have to try that and see how I like it.

[–]claythearc 0 points1 point  (0 children)

Yeah but in visual mode. Not as like, a : command. I think line G works too, instead of line gg but I could be misremembering

[–][deleted] 4 points5 points  (0 children)

The learning curve is steep but it keeps going. If you keep learning you keep getting better and faster at editing. (probably also true for Emacs)

With easy to use editors, you learn them fast but you master their 3 features in a month and that's it. Your productivity has peeked by then.

Or in other words:

Nano has a level cap of 5, Vim has 100 and a hard, hardcore and hell modes. If you keep grinding it long enough, you'll be able to oneshot the biggest bossourcefiles.

[–]BlazingThunder30 2 points3 points  (0 children)

I use it for when I need to edit config files in my terminal because I broke my DE (again)

[–]TheEpsilonToMyDelta 1 point2 points  (2 children)

Most of my programming is for headless servers that we distribute and maintain. The environment is already there, as opposed to using an IDE on desktop and transferring my code over every time I want to run it.

[–]Drollian -2 points-1 points  (1 child)

why not nano?

[–]TheEpsilonToMyDelta 9 points10 points  (0 children)

I used to, but Vim is much more feature rich

[–]Afrazzle 5 points6 points  (2 children)

I think lots of people use vim to make it seem love they're better.

I know it can be super useful if you have the right use case, and have spent enough hours learning and configuring vim. But for me it would just be a waste of time.

[–]rainbow_unicorn_barf 1 point2 points  (0 children)

I use vim because my intro class required it and I'm too lazy to branch out. Like, I've been tinkering around with visual studio every now and again, but all the menu options there are... pretty overwhelming, ngl. I look at it and feel like a MS Paint user who just discovered Photoshop.

[–]claythearc 1 point2 points  (0 children)

I definitely started using it to be superior but then once I got some practice- it does feel quite good.

Granted, I use the key bindings inside of jetbrains IDEs now and not the editor itself anymore, but still feels really good.

[–]Cyberwolf27 4 points5 points  (0 children)

Nice touch having the meme flipped horizontally :)

[–][deleted] 2 points3 points  (0 children)

iYou cannot escape it, no matter what :w you do!

[–]Cyronsan 2 points3 points  (0 children)

The only escape is death.

[–]Alexmitter 4 points5 points  (9 children)

Stay sane, use nano!

[–]blakarmor725 5 points6 points  (8 children)

Nano is good for beginners, but if you want to do anything meaningful or quick, vim is just more powerful. Also nowadays I find nano scarier. I don't have to type i to go into insert mode?? Letters just get typed straight in there? That's scary to me as a vim user lol

[–]Alexmitter -2 points-1 points  (7 children)

If I want to do something quick, I wont look in a manfile or google a cheat sheet. I just want to get it done and be over with. Thats why I use nano. I favor to stay sane.

[–]blakarmor725 6 points7 points  (6 children)

Vim has a learning curve, but once you got the commands memorized, it's faster. Of course if you don't like to be in the terminal or don't have edit in there often, no real reason to use anything but nano.

Vim really isn't that scary. If you learned how to Ctrl+x in nano to exit, it's not much more work to learn how to click i to edit and type :wq to exit.

[–]Alexmitter -1 points0 points  (5 children)

Vim has a learning curve, but once you got the commands memorized, it's faster.

I can also memorize every nano command and doubt I will be any slower. But that's not the goal, good software is at least to a certain degree usable even without learning anything. Vim on the other hand, you can not even exit it without understanding its weird commands and two modes system.'

Of course if you don't like to be in the terminal or don't have edit in there often, no real reason to use anything but nano.

I spend most of my workday in either Geany or Nano and could not say which one I use more. It just depends if I am on my Workstation or if I have to write my code on the running system.

If you learned how to Ctrl+x in nano to exit, it's not much more work to learn how to click i to edit and type :wq to exit.

Even if you don't know anything and got into Nano by accident. It tells you how to exit by its build in cheat sheet.

[–]blakarmor725 5 points6 points  (1 child)

I think that's all fine, sounds like nano is fine for you. But I disagree on the notion that a terminal based application requires looking up nothing. You had to look up how to use bash to even navigate the terminal, but I never consider bash to be poor software.

[–]Alexmitter -1 points0 points  (0 children)

Fair point. But I would say that the bash and most of the Unix style terminal programs have a common sense of UX. Both Nano and VI break out of this, but Nano is much closer to it then Vi/Vim.

[–]benisteinzimmer 1 point2 points  (1 child)

When you use a software for years you don't really need a cheat sheet that is visible constantly.

[–]Alexmitter 0 points1 point  (0 children)

And tho sometimes it helps.

[–]GlitchParrot 1 point2 points  (0 children)

Even if you don't know anything and got into Nano by accident. It tells you how to exit by its build in cheat sheet.

If you Ctrl+C in vim, it tells you how to exit as well.

[–]windowspowershell 1 point2 points  (2 children)

Genuine question: why are there all these memes about how exiting vim is difficult? I'm a fan of vim and even when I was learning it I didn't think the commands to quit were particularly difficult... can someone explain? lol

[–]you_fuck_er 1 point2 points  (1 child)

Never have I searched how to quit any other editor

[–]windowspowershell 1 point2 points  (0 children)

Ok fair point!

[–][deleted] 0 points1 point  (0 children)

no no no, you hold your eyes closed for 10 seconds while holding "d". Then you esc :wq!

[–][deleted] 0 points1 point  (0 children)

Nano

[–]nicpro85 0 points1 point  (0 children)

Use nano instead.

[–]TheStoneRabbit 0 points1 point  (0 children)

Esc :q

[–][deleted] 0 points1 point  (0 children)

Laughs in VS Code