diff --git a/.vimrc b/.vimrc index 285f013..c4bcd55 100644 --- a/.vimrc +++ b/.vimrc @@ -40,6 +40,9 @@ if exists('+mouse') else endif +" F5 to trim trailing whitespace +map :let _s=@/ :%s/\s\+$//e :let @/=_s :nohl :unlet _s + " NERDTree binding map :NERDTreeToggle