Live data from Hacker News

How I boosted my Vim

nvie.com

11–20 of 69 posts

Re: How I boosted my Vim

#11
post #10

This is actually a really good guide. I use vim daily at work, and my .vimrc shares most of these settings. One big productivity boost for me was remapping the Escape key to something a little more convenient. I just remapped the ESC key altogether, but this can throw you off if you find yourself working at lots of different computers. If you prefer something less permanent, you can map a key sequence to ESC. I like…

So you can't type sdf in your code?

Re: How I boosted my Vim

#12
post #10

This is actually a really good guide. I use vim daily at work, and my .vimrc shares most of these settings. One big productivity boost for me was remapping the Escape key to something a little more convenient. I just remapped the ESC key altogether, but this can throw you off if you find yourself working at lots of different computers. If you prefer something less permanent, you can map a key sequence to ESC. I like…

You can also use Ctrl-C to get out of insert mode.

Re: How I boosted my Vim

#13
One thing that continues to impress me is how much bigger than popular belief Vim is. There is a plethora of options you can set in your vimrc file (just now I found out about wildignore, and I'm kind of a Vim addict) and there are fucking lot of commands (try [I ), and that's not considering Ex mode.

Customization is way easier than in Emacs, you just unzip an archive in your .vim dir and (99% of the time) it works. I have plugins that do everything I've seen in Emacs that has to do with code, and then some.

Vim is no more the tiny start-quick-edit-close editor that it used to be.

Edit: I don't want to start a holy war here. Emacs is great, and I in fact have it opened right now. It's just that it's supposed to be able to do amazing stuff that Vim can't, I'm saying that that's probably still true, but to a way lesser level than before.

Re: How I boosted my Vim

#14
In the recent years the booster for me has been the "Command-T" plugin, which makes it super fast to open files.

I can _highly_ recommend this plugin, even if it's a bit harder to install than most other Vim plugins.

Check out https://wincent.com/products/command-t and http://amix.dk/blog/post/19501#Command-T-for-Vim-an-awesome-...

Re: How I boosted my Vim

#15
post #12
post #10

This is actually a really good guide. I use vim daily at work, and my .vimrc shares most of these settings. One big productivity boost for me was remapping the Escape key to something a little more convenient. I just remapped the ESC key altogether, but this can throw you off if you find yourself working at lots of different computers. If you prefer something less permanent, you can map a key sequence to ESC. I like…

You can also use Ctrl-C to get out of insert mode.

Yes, but that's not equivalent to Esc, use this:

inoremap

Re: How I boosted my Vim

#16
post #11
post #10

This is actually a really good guide. I use vim daily at work, and my .vimrc shares most of these settings. One big productivity boost for me was remapping the Escape key to something a little more convenient. I just remapped the ESC key altogether, but this can throw you off if you find yourself working at lots of different computers. If you prefer something less permanent, you can map a key sequence to ESC. I like…

So you can't type sdf in your code?

You can type it... Just slowly

My combination is just kj.

Re: How I boosted my Vim

#17
post #10

This is actually a really good guide. I use vim daily at work, and my .vimrc shares most of these settings. One big productivity boost for me was remapping the Escape key to something a little more convenient. I just remapped the ESC key altogether, but this can throw you off if you find yourself working at lots of different computers. If you prefer something less permanent, you can map a key sequence to ESC. I like…

ctrl-[ is also equivalent to Esc

Re: How I boosted my Vim

#18
post #10

This is actually a really good guide. I use vim daily at work, and my .vimrc shares most of these settings. One big productivity boost for me was remapping the Escape key to something a little more convenient. I just remapped the ESC key altogether, but this can throw you off if you find yourself working at lots of different computers. If you prefer something less permanent, you can map a key sequence to ESC. I like…

Why jk twice? I just use jk. Almost never appears in actual writing, and it makes vim much easier to use.

Re: How I boosted my Vim

#20
post #6

I have a similarly hacked up Emacs environment and it's actually gotten to the point that I'm taking a hard look at IDEs again. Having all this functionality available in a single integrated package with a visual debugger thrown in is starting to look strangely appealing.

IMO, IDEs are better for almost everything, except for actual text editing. For that, vim and emacs are still the best (I prefer vim for plain text editing prowess, but emacs has a lot of other goodies which make it closer to an IDE, but still not as good).

Obviously, these are only my personal opinions.

Post reply on HN