Replace on save #1826
Unanswered
gaoqiangks
asked this question in
Q&A
Replace on save
#1826
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to execute a regex substituation on save like:
vim.api.nvim_create_autocmd("BufWritePre", { pattern = { "*.tex" }, command = "silent! % s/^\\s*$/%/g" })
How to achieve it in vscode-neovim?
Update: I found the following solution, which seems to work fine.
Beta Was this translation helpful? Give feedback.
All reactions