From ffc303b4aa7171a73e868c8a674278d628d35073 Mon Sep 17 00:00:00 2001 From: Dustin Swan Date: Wed, 18 Jul 2012 10:42:14 -0500 Subject: [PATCH] Adding vim alias to trim whitespace --- oh-my-zsh | 2 +- vim/bundle/vundle | 2 +- vimrc | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/oh-my-zsh b/oh-my-zsh index 1103421..1120f97 160000 --- a/oh-my-zsh +++ b/oh-my-zsh @@ -1 +1 @@ -Subproject commit 11034217a7ea3cffe6e0fe631837c518b8c7e1a5 +Subproject commit 1120f973054836eeb53750f57d69fbec41a340dc diff --git a/vim/bundle/vundle b/vim/bundle/vundle index 03ed2bd..dd8356a 160000 --- a/vim/bundle/vundle +++ b/vim/bundle/vundle @@ -1 +1 @@ -Subproject commit 03ed2bd39e37c5ff035c05197af81558eb5d8a89 +Subproject commit dd8356aea7499fed92f7c37227b1625a2b3dc190 diff --git a/vimrc b/vimrc index de9051f..f570316 100644 --- a/vimrc +++ b/vimrc @@ -166,6 +166,9 @@ nnoremap 4 :! p4 edit % " open vsplit and switch to it nnoremap w vl +" trim whitespace +nnoremap W :%s/\s\+$//e + " open Ack nnoremap a :Ack