|MacVim icon, glossy style (Photo credit: Wikipedia)|
Well, I share to you to delete white space using vim. Please follow me.
1. Copy function below to ~/.vimrc
autocmd BufWritePre *.rb :call DelWhiteSpace()
2. Open a file that has whitespace and write
3. And write to save and quit
Hopefully this article is useful. :)