Tuesday, November 28, 2017

Can Vim be configured so it considers files with no-op edits as unmodified?

I'm looking for a plugin or even a Vim patch that makes it so files are
not considered unmodified if the "changes" that were effectively no-op.
For example, if I execute "gq}" to reflow a paragraph, Vim considers the
file modified even if the command didn't actually change anything. I
thought I could at least disabled "No write since last change for
buffer..." by writing a function that gets executed when Vim is
quitting, but the autocommands "VimLeave" and "VimLeavePre" don't seem
to be executed before the error is shown.

Eric

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: