Skip to main content

New answers tagged

0 votes

How to automatically strip trailing spaces on save in Vi and Vim?

In lua code: vim.api.nvim_create_autocmd("BufWritePre", { pattern = "*", command = ":%s/\\s\\+$//e", })
Andries Filmer's user avatar

Top 50 recent answers are included