mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 20:40:32 +01:00
Ignore whitespace cleanup for test files
This commit is contained in:
@@ -47,6 +47,9 @@ fun! StripTrailingWhitespace()
|
|||||||
if &ft =~ 'diff'
|
if &ft =~ 'diff'
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
if expand("%:e") == 't'
|
||||||
|
return
|
||||||
|
endif
|
||||||
%s/\s\+$//e
|
%s/\s\+$//e
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user