Live data from Hacker News

How Did Vim Become So Popular?

pragmaticpineapple.com

301–310 of 507 posts

Re: How Did Vim Become So Popular?

#301

Because nobody knows how to quit

My first few times in linux after trying to read a file: Ctrl+C esc esc Ctrl+c Ctrl+q What is this! What is going on!?! 15 minutes of searching on my phone later, q...

FWIW if you press Ctrl+C two times Vim will show you this nice message :p

    Type  :qa  and press  to exit Vim

Re: How Did Vim Become So Popular?

#302

Does anyone have a good video comparing vim speed coding vs vscode using built in editor features? I’ve been using vscode for years and the YouTube videos that demo vim features are shallow (like how to enter a blank line - really?). I can do the same thing I have seen in vim videos without memorizing a bunch of strange key bindings all while being able to edit code instantly without changing modes. I would love to s…

Here's my best take at this so far, I wrote it in 2007:

Why, oh WHY, do those #?@! nutheads use vi? http://www.viemu.com/a-why-vi-vim.html

Re: How Did Vim Become So Popular?

#303

Speaking personally, I've been a professional developer for almost decade and even in my relatively short career I've seen a lot of technologies come and go. I was reluctantly roped into it by my first boss, an enthusiastic Vim advocate. And since, almost nothing else (save for maybe git) beat learning vim from a return on investment perspective. From the default mac OS installation to some old Fedora box that has no…

> And since, almost nothing else (save for maybe git) beat learning vim from a return on investment perspective.

Interesting. I generally use IDEs Pycharm or Eclipse, or VSCode depending on the language. Do you think I would gain a lot from learning VIM?

Re: How Did Vim Become So Popular?

#304
post #253

Speaking personally, I've been a professional developer for almost decade and even in my relatively short career I've seen a lot of technologies come and go. I was reluctantly roped into it by my first boss, an enthusiastic Vim advocate. And since, almost nothing else (save for maybe git) beat learning vim from a return on investment perspective. From the default mac OS installation to some old Fedora box that has no…

This is really interesting. I'm quite the opposite. I keep trying to make vim my main devtool but I just can't stay away from a fully fledged ide. At the same time, having heard from literally everyone that once you do get used to it, vim is way faster to do everything in. What advice do you have for someone like me to proper get used it once and for all? Are there any good resources you used to learn all the vim sho…

My advice would be to start with the bare minimum: Using [i] to enter insert mode, [ESC] to get back to command mode, arrow keys to move around in either mode. With this you can use vim like Notepad.

Then observe yourself doing stuff and whenever you think "there must be a better way to do X", find out and learn how to do just that. (You would ideally have a cheatsheet on your desk for quick reference. If it's not on there, search the internet.)

At this point, it also helps to know about the basic grammar of normal-mode commands: motions as subjects, commands as verbs. Full sentences are either only-motion, command-motion, count-command-motion or command-count-motion. So if you have already learned that "dw" deletes a word, you immediately know that "d2w" or "2dw" deletes two words.

There's not much more to it. Just do your actual text editing and if you ever find yourself thinking "there must be a better way to do this", that's another learning opportunity.

It's a lot like language learning, really. You can plow through 10,000 vocabulary words in your SRS if you want, but nothing beats actually using the language.

Re: How Did Vim Become So Popular?

#305
post #224
post #217

Earlier quoted context omitted.

(Funnily enough ctrl-[ is one of my most used shortcuts in vim. It’s a convenient alternative to escape if you map caps-lock to ctrl)

You may be using vim wrong. Good for you if you like it that way

Using Ctrl-[ is perfectly fine if that's convenient to you. Some people doe "inoremap jj " and double tap j to exit insert mode. If it's faster for you than pressing regular escape, it's an improvement, and thus good.

Re: How Did Vim Become So Popular?

#306

Over the years I've used a lot of editors on unix shell; ed, jed, joe, pico, nano, emacs, vi(m) and I think vim is the best editor on shell for its performance, speed, and mobility. It's a rational choice for SRE/DevOps type engineers. I still sometimes use nano for very quick edits especially when having no physical Esc button frustrates me. However if mobility is not a concern, in other words if I'm editing files o…

>especially when having no physical Esc button frustrates me

It's not uncommon in the Vim world to remap Esc to CapsLock

Re: How Did Vim Become So Popular?

#307

Earlier quoted context omitted.

Here's the real question - So you are convinced you don't need Vim, right? Why are you on this thread? No one's saying vim is superior. However, you need to have an open mind to understand the alternatives. It's not like Vim is a paid product and by you not using it, Vim is going to die out soon or anything. If you dont' like it, great? You are happy with the alternative, great. You seem like you just want to deliber…

I use vim as a boring config editor in terminals. I don't think it's the best editor by a long shot and even something as basic as Atom is more productive for code editing for me. The idea of customizing your vim setup for maximum productivity doesn't appeal to me. It always ended up in a mess and over ssh it's pointless.

You may want to check out “How Vim killed Atom and VSCode on my Machine”—-https://medium.com/@aswinmohanme/how-vim-killed-atom-and-vsc...

Re: How Did Vim Become So Popular?

#308

Speaking personally, I've been a professional developer for almost decade and even in my relatively short career I've seen a lot of technologies come and go. I was reluctantly roped into it by my first boss, an enthusiastic Vim advocate. And since, almost nothing else (save for maybe git) beat learning vim from a return on investment perspective. From the default mac OS installation to some old Fedora box that has no…

I've used vi for 25 years now, starting on a m68k based BSD machine. It's an adequate editor, handy in remote shell sessions and good to know how to use, but I'd MUCH rather use an IDE or a windowed editor with menus and mouse and hotkeys like Sublime. I mean real hotkeys, not emacs.

At the end of the day, it takes a certain kind of mind to like vi, and if you're not of that mind, you probably never will be.

Re: How Did Vim Become So Popular?

#309
post #303

Speaking personally, I've been a professional developer for almost decade and even in my relatively short career I've seen a lot of technologies come and go. I was reluctantly roped into it by my first boss, an enthusiastic Vim advocate. And since, almost nothing else (save for maybe git) beat learning vim from a return on investment perspective. From the default mac OS installation to some old Fedora box that has no…

> And since, almost nothing else (save for maybe git) beat learning vim from a return on investment perspective. Interesting. I generally use IDEs Pycharm or Eclipse, or VSCode depending on the language. Do you think I would gain a lot from learning VIM?

No. It's like when somebody wants to learn how to fly, people tell them first to learn how to run really fast.

Re: How Did Vim Become So Popular?

#310
post #289

Earlier quoted context omitted.

Here's a video of some more advanced vim features I threw together. I'd be surprised if you can do this using e.g. vanilla vscode https://www.youtube.com/watch?v=UDGG3hK4Bg8 Its a simplified version of a problem from work a while ago where we had to generate ui from lots of csv files. The last dev on it was taking weeks, but with vim I was able to come in and finish the boilerplate instantly. (We were commited to non…

Nice vim demo on youtube, how does the sequenced numbering work? Can vim increment a number without any plugins?

Yes.
Post reply on HN