|
|
@ -427,6 +427,9 @@ if has("autocmd") |
|
|
endif |
|
|
endif |
|
|
"[Remove tabs and spaces at the end of lines]" |
|
|
"[Remove tabs and spaces at the end of lines]" |
|
|
function! DeleteTrailingTWS() |
|
|
function! DeleteTrailingTWS() |
|
|
|
|
|
if &ft =~ 'diff' |
|
|
|
|
|
return |
|
|
|
|
|
end |
|
|
normal mb |
|
|
normal mb |
|
|
silent %s/[ \t]*$//g |
|
|
silent %s/[ \t]*$//g |
|
|
silent %s/\s\+$//ge |
|
|
silent %s/\s\+$//ge |
|
|
|