Skip to content

Commit

Permalink
strip whitespace when saving files
Browse files Browse the repository at this point in the history
  • Loading branch information
smtlaissezfaire committed Aug 9, 2011
1 parent 6baf0b7 commit ac9c348
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ set title "show the status line in the terminal title

set wildmode=list:longest "allow shell-like tab autocompletion for paths with :e


"textmate CMD-T like Fuzzy file support
map <Leader>t :FuzzyFinderTextMate<Enter>
"strip whitespace when saving the following files
autocmd BufWritePre *.js :%s/\s\+$//e
autocmd BufWritePre *.md :%s/\s\+$//e
autocmd BufWritePre *.rb :%s/\s\+$//e

0 comments on commit ac9c348

Please sign in to comment.