-
-
Save Raimondi/2308477 to your computer and use it in GitHub Desktop.
remove_ws.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! s:ScourgeWhitespace(flag) | |
if a:flag | |
echo "Killing whitespace with fire..." | |
%s/ \+$// | |
else | |
echo "Gently helping you to remove whitespace..." | |
%s/ \+$//c | |
endif | |
endfunction | |
command! -bang ScourgeWS call s:ScourgeWhitespace(<bang>1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment