Register an automatic whitespace cleaner, add a line c with trailing spaces at the end, then save.
Register an automatic whitespace cleaner, add a line c with trailing spaces at the end, then save.: a task in vim-headless-mastery: vim (Harbor dataset). New idea: :autocmd hooks an event; BufWritePre can clean whitespace before every write.
The task
**New idea:** `:autocmd` hooks an event; `BufWritePre` can clean whitespace before every write.
Part of swedishembedded/vim-headless-mastery.