1
0
mirror of https://github.com/gryf/.vim.git synced 2025-12-17 11:30:29 +01:00

Add some more filetypes to nuke whitespaces

This commit is contained in:
2022-04-01 15:51:17 +02:00
parent 5c5c46c252
commit 34555fba68

2
vimrc
View File

@@ -588,7 +588,7 @@ function <SID>StripTrailingWhitespaces(force, mode) range
return return
endif endif
if a:force == 1 || &ft =~ 'python\|rst\|wiki\|javascript\|css\|html\|xml' if a:force == 1 || &ft =~ 'python\|rst\|wiki\|javascript\|css\|html\|xml\|yaml\|sh'
" Preparation: save last search, and cursor position. " Preparation: save last search, and cursor position.
let _s=@/ let _s=@/
let l = line(".") let l = line(".")