Nicolás Brailovsky


A modern blog

Vim tips: make things work

author Posted by: nico on date Jun 11th, 2010 | filed Filed under: Vim Tips
So, you are an uber console geek, using only vim and the command line to compile all your projects, execute the tests, blah blah blah… if only you could squeeze that microsecond lost whenever you switch from vim to compile you’d be 1e-4 seconds more productive… oh, wait, you can!

Whenever you think you’re project is good enough to compile just hit :make to be proven wrong. Type :make test to run your tests (because you are using TDD, aren’t you?) and watch all those red flags fly by.Also, add the following mapping to your ~/.vimrc for an extra happy coding session:

  1. map <F5> :make
  2. map <F6> :make test


     Add A Comment

trackback Trackback URI | rsscomment Comments RSS