A function and autocommand pair that removes all
- trailing whitespace - empty lines at the end of the buffer
on every BufWritePre.
BufWritePre
use "McAuleyPenney/tidy.nvim"
or with lazy-loading
use{ "McAuleyPenney/tidy.nvim", event = "BufWritePre" }
Vim Tips Wiki entry for removing unwanted spaces
ib., the author of this stack overflow answer
This line in gpanders/editorconfig.nvim for exposing me to the keepjumps and keeppatterns modifiers
keepjumps
keeppatterns