vim – Remove trailing whitespace

Last blog post, I mentioned you could clean up and reformat a file by using :retab.
This doesn’t remove unnecessary trailing whitespace though. To remove trailing whitespace, use the following:

vim – Quickly convert all tabs to spaces

Make sure, in your .gvimrc file, that the following are set to your liking:

Then type the following within vim:

vim – Vim link dump

I’ve been using Vim for quite a while and I love it. So I have placed a bunch of useful ViM links here. If you’re a programmer, I highly recommend learning Vim. Unfortunately Vim doesn’t have very good intellisense like functionality. So if you’re on linux, use NetBeans and the jvi plugin, and if you’re on windows and you want to stick with Visual Studio, get the viEmu extension (not free).

Read the rest of this entry »

vim – Vim Emulators

NetBeans: jvi
For VS2010, free but sucked last time I checked: VsVIM
For VS 2010/2008/2005: ViEmu

UPDATE: VsVim is now the best one. It no longer sucks. 😀