Skip to content

Commit

Permalink
Revert "stop auto-stripping whitespace from the end of lines"
Browse files Browse the repository at this point in the history
This reverts commit 09e629c.
  • Loading branch information
thoughtless committed Apr 13, 2012
1 parent c75348a commit 430faf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimrc
Expand Up @@ -45,7 +45,7 @@ if has("autocmd")
autocmd FileType text setlocal textwidth=78

" For all ruby/rails/rspec/cucumber files, strip out trailing white space at the end of lines.
"autocmd FileType cucumber,ruby,yaml,eruby autocmd BufWritePre <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\s\\+$","","")'))
autocmd FileType cucumber,ruby,yaml,eruby autocmd BufWritePre <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\s\\+$","","")'))

" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
Expand Down

0 comments on commit 430faf4

Please sign in to comment.