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'
|
||||
return
|
||||
endif
|
||||
if expand("%:e") == 't'
|
||||
return
|
||||
endif
|
||||
%s/\s\+$//e
|
||||
endfun
|
||||
|
||||
|
||||
Reference in New Issue
Block a user