Using MacVim

Earlier I have been switching between TextMate, Coda and Espresso for my editing. Lately though, I've been using MacVim, kind of inspired by a colleague of mine and a tutorial by Jeffrey Way (NetTuts).

So far I really like Vim, it's all the little nitty gritty things which make Vim really powerful. Today I was looking for a way to easily only keep lines in my buffer which have certain words in it. This can easily be done as follows: :%!grep word-youre-looking-for

The nice thing is that this executes the normal Unix grep command, the ! command uses any external command, so if you would want to sort your whole buffer you would do: :%!sort

For more information information, use :help !

My own Vim configuration (vimrc) is in my dotfiles repository on GitHub.