Disable trailing whitespace cleaning when working on diff files

This commit is contained in:
lhark 2016-03-30 15:22:20 +00:00
parent b3788b78a4
commit 85d29d1e29

3
vimrc
View file

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