1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-25 12:30:32 +01:00

Ignore whitespace cleanup for test files

This commit is contained in:
2022-08-19 16:23:45 +02:00
parent d428751e5d
commit 45b1a34b18

View File

@@ -47,6 +47,9 @@ fun! StripTrailingWhitespace()
if &ft =~ 'diff'
return
endif
if expand("%:e") == 't'
return
endif
%s/\s\+$//e
endfun