Skip to content

Instantly share code, notes, and snippets.

@rtomayko
Created October 31, 2008 22:39
Show Gist options
  • Save rtomayko/21434 to your computer and use it in GitHub Desktop.
Save rtomayko/21434 to your computer and use it in GitHub Desktop.
" ---------------------------------------------------------------------------
" Strip all trailing whitespace in file
" ---------------------------------------------------------------------------
function! StripWhitespace ()
exec ':%s/ \+$//gc'
endfunction
map ,s :call StripWhitespace ()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment