Live data from Hacker News

How I boosted my Vim

nvie.com

51–60 of 69 posts

Re: How I boosted my Vim

#51
post #49

Earlier quoted context omitted.

I agree that this is true, if you have no desire to learn how Emacs and your chosen modes work. If you are willing to dig in, the ability to fix your tools with a simple C-M-x is indispensable, and is a feature that no IDE has. What features do you think Emacs is missing?

Firstly, emacs is not a quick-start environment. If I want to get started in a new language, let's say Java, downloading Eclipse will make getting started with Java insanely easy. The same with C++ and Visual Studio. Compare with emacs, in which I have to spend time getting things to work. I'm not saying it's worse in the long run (although I suspect you can't beat Java on Eclipse), but the overhead every time I want…

> I suspect you can't beat Java on Eclipse

You can: IntellJ.

Re: How I boosted my Vim

#52
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.

> Having all this functionality available in a single integrated package...

s/available/trapped/

s/integrated/monolithic/

;-)

I think IDEs are useful, yet they always make me think what a bad example of code reuse they are. Code reuse? Are you kidding? Much better rewriting each plugin with each IDE ;-)

EDIT: By "monolithic" I don't mean that IDEs are not modular; I mean you can't use their modules elsewhere.

Re: How I boosted my Vim

#53
post #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.…

Speaking of [I, I prefer Shit-8 (*) or Shit-3 (#).

You seem to have impressed a wrong spelling into muscle memory.

Re: How I boosted my Vim

#54
post #50

Earlier quoted context omitted.

I agree. If I'm just editing text, like an email or a readme or a blog post or a typical config file, I'd rather have a quick, lean, dedicated text editor. Some of these editor-as-IDE environments start to feel a little like an incredibly pimped-out Pinto though.

IMO, the problem isn't with "just editing a quick file" or not. The problem is, IDEs are amazing for everything other than editing text. This includes editing source code, mind you. I find it much easier and funner to edit code in vim, since it has so many small things that make editing code much faster. IDEs are generally much slower for the actual act of editing code than things like vim. They're just better becaus…

Define most people. Personally I spend the majority of my day editing text, so the small improvements are pretty important.

P.S. I have code completion, jump to file etc all working just fine in vim. On a codebase with 15000+ files, this is a hell of a lot faster in vim than it is in say, Eclipse.

Re: How I boosted my Vim

#56
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.

That bypasses any InsertLeave autocmds.

Re: How I boosted my Vim

#57
post #33
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…

Finally! A use for caps-lock

Emacs and Vim users sometimes return Caps Lock to its previous function: Control. It's more useful than Escape.

Re: How I boosted my Vim

#58
Another great trick I read in a reddit comment is to use + to paste right from the OS paste board. Of course, this only works when running Vim locally (i.e. not over an SSH connection).

Actually, it does work over SSH if your X connection is forwarded properly.

Re: How I boosted my Vim

#59
post #58

Another great trick I read in a reddit comment is to use + to paste right from the OS paste board. Of course, this only works when running Vim locally (i.e. not over an SSH connection). Actually, it does work over SSH if your X connection is forwarded properly.

True, true.

Re: How I boosted my Vim

#60
post #52
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.

> Having all this functionality available in a single integrated package... s/available/trapped/ s/integrated/monolithic/ ;-) I think IDEs are useful, yet they always make me think what a bad example of code reuse they are. Code reuse? Are you kidding? Much better rewriting each plugin with each IDE ;-) EDIT: By "monolithic" I don't mean that IDEs are not modular; I mean you can't use their modules elsewhere.

You're not suggesting Emacs or Vim is somehow better, are you?
Post reply on HN