5f3830323b7a

vim: clean whitespace
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 28 May 2010 11:41:11 -0400
parents ea00281d0bdf
children 5e58b794e720
branches/tags (none)
files vim/.vimrc

Changes

--- a/vim/.vimrc	Fri May 28 09:00:24 2010 -0400
+++ b/vim/.vimrc	Fri May 28 11:41:11 2010 -0400
@@ -105,6 +105,9 @@
 " Sort CSS
 map <leader>S ?{<CR>jV/^\s*\}\=$<CR>k:sort<CR>:let @/=''<CR>
 
+" Clean whitespace
+map <leader>W :%s/\s\+$//<CR>:let @/=''<CR>
+
 " Exuberant ctags!
 let Tlist_Ctags_Cmd = "/usr/local/bin/ctags"
 let Tlist_WinWidth = 50