Adding vim alias to trim whitespace

This commit is contained in:
Dustin Swan
2012-07-18 10:42:14 -05:00
parent 496cef7602
commit ffc303b4aa
3 changed files with 5 additions and 2 deletions

3
vimrc
View File

@@ -166,6 +166,9 @@ nnoremap <leader>4 :! p4 edit %<cr>
" open vsplit and switch to it
nnoremap <leader>w <c-w>v<c-w>l
" trim whitespace
nnoremap <leader>W :%s/\s\+$//e<cr>
" open Ack
nnoremap <leader>a :Ack<space>