Skip to content

Instantly share code, notes, and snippets.

@marceldegraaf
Created May 18, 2010 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marceldegraaf/404781 to your computer and use it in GitHub Desktop.
Save marceldegraaf/404781 to your computer and use it in GitHub Desktop.
function! RemoveTrailingWhiteSpaces()
" Remove ALL trailing whitespaces
%s/\s\+$//
endfunction
noremap WW :call RemoveTrailingWhiteSpaces()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment