mirror of
https://github.com/gryf/.vim.git
synced 2025-12-17 03:20:29 +01:00
Add some more filetypes to nuke whitespaces
This commit is contained in:
2
vimrc
2
vimrc
@@ -588,7 +588,7 @@ function <SID>StripTrailingWhitespaces(force, mode) range
|
||||
return
|
||||
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.
|
||||
let _s=@/
|
||||
let l = line(".")
|
||||
|
||||
Reference in New Issue
Block a user