Live data from Hacker News

Why I can’t stop using Vim

kornerstoane.com

161–169 of 169 posts

Re: Why I can’t stop using Vim

#161
post #143
post #72

Earlier quoted context omitted.

Do you happen to have some resources you can share? I've been playing with Tidal, a live-coding library and it wants me to use Emacs, and I just... can't. So any info on setting up evil-mode would be great, especially since it's fresh in your mind. I've found some resources but really don't know where to start.

What problems are you facing? Setting up evil mode takes just what the emacs wiki says. 1. Install emacs. Start emacs. "Alt-x package-install" press enter "evil" press enter. 2. Open your .emacs or .emacs.d/init.el. (require 'evil) (evil-mode 1) Done.

Biggest problem for me when I first used evil was learning that C-g is what I need to press when I accidentally hit an emacs chord sequence and want to abort. I had to google a few times to find that out when Esc wouldn't get me out of the minibuffer.

Re: Why I can’t stop using Vim

#162
post #123

> and ‘Esc’ to move around again. For me personally this is the reason I stopped using Vi(m) except for occasional config file editing on unfamiliar servers, and started looking elsewhere (Emacs) for my goto text editor. I'm not looking to switch, but it genuinely interests me how Vi users put up with the constant need to strain their pinky to switch to command mode.

I remapped it to 'jk'. I don't think I've seen any vim users using 'esc' key to go to normal mode.

Then the single 'j' becomes slow...

Re: Why I can’t stop using Vim

#163

Earlier quoted context omitted.

I've never had any problems with etags, either. I've always gotten the same functionality as vim. Maybe we are missing something.

I had this same problem: they function differently in evil mode than Emacs mode; for some reason evil does its own word boundary definitions for etags lookups, and it breaks up words on underscores. I dug into it, and it was some problem with evil's word semantics (that only existed for etags lookups). I ran out of energy to debug it further, and just went back to Vim. Regular etags called with the emacs bindings wor…

Could you mention this on the mailing list? I don't know if I'll have time to fix it any time soon, but someone else might, and that needs to be fixed.

Re: Why I can’t stop using Vim

#164
post #41

Earlier quoted context omitted.

I am the only person in my office that uses Emacs. Everyone knows vim. Everyone loves vim. You think you're the crazy one?

Jokes aside, outside of certain areas which are fairly unusual, most programmers have never used vim OR emacs and I would guess that most don't even really know about them. It can be hard to imagine in the echo-chamber that is the online tech scene, but really most developers just use IDE's and get on with life.

That's interesting. We all have our own circles we run in but every programmer I know uses vim or emacs except Windows users but, well, you know.

Re: Why I can’t stop using Vim

#165
post #17
post #4

"/ for searching (really, no other editor has made it this simple)" Well, it's really esc-/ which is no easier than ctrl-f. Or am I missing something? Edit: Same with "1G to go to the top of the file, G to go to the bottom" - esc-1-shift-g vs ctrl-home. Same with ctrl-end.

I think you're using the editor's modality wrong. ESC is not used to exit from Insert mode. ESC is used to switch from any mode back to Command mode. In fact Command mode is also called Normal mode. You should spend 95% of your time in Normal mode and use the other modes when you need them. I suggest binding `kj` to ESC since it allows you to quickly make a change and continue browsing your code. Take the following s…

If I may use you as a random Vim power user, how do you quickly switch between project files?

Re: Why I can’t stop using Vim

#166

It’s great that people are so inspired by Vim that they continue to create new plugins, tutorials and websites like Vim Awesome: http://vimawesome.com

Thanks for the link. I checked it out today and was finally able to convert from pathogen to Vundle. The site gives you the exact strings to configure the plugins in all the major plugin managers. IIRC, it scans github looking for .vimrc files and indexes them to gather usage data. Very cool.

Re: Why I can’t stop using Vim

#167

Earlier quoted context omitted.

Colon? That sounds painful, map it to some single keystroke. I use back slash on my tiny cherry keyboard. noremap \ :

Isn't backslash the default keystroke?

yep, have leader mapped to space ;-)

Re: Why I can’t stop using Vim

#168
post #143

Earlier quoted context omitted.

What problems are you facing? Setting up evil mode takes just what the emacs wiki says. 1. Install emacs. Start emacs. "Alt-x package-install" press enter "evil" press enter. 2. Open your .emacs or .emacs.d/init.el. (require 'evil) (evil-mode 1) Done.

Biggest problem for me when I first used evil was learning that C-g is what I need to press when I accidentally hit an emacs chord sequence and want to abort. I had to google a few times to find that out when Esc wouldn't get me out of the minibuffer.

[deleted]

Re: Why I can’t stop using Vim

#169
post #143

Earlier quoted context omitted.

What problems are you facing? Setting up evil mode takes just what the emacs wiki says. 1. Install emacs. Start emacs. "Alt-x package-install" press enter "evil" press enter. 2. Open your .emacs or .emacs.d/init.el. (require 'evil) (evil-mode 1) Done.

Biggest problem for me when I first used evil was learning that C-g is what I need to press when I accidentally hit an emacs chord sequence and want to abort. I had to google a few times to find that out when Esc wouldn't get me out of the minibuffer.

Exact same issue I ran into... the odd dumping out into non-evil modes is terror inducing.
Post reply on HN