Browse Source

Disable trailing whitespace cleaning when working on diff files

merge-requests/1/merge
lhark 10 years ago
parent
commit
85d29d1e29
  1. 3
      vimrc

3
vimrc

@ -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

Loading…
Cancel
Save