Thursday, November 12, 2015

Re: How to catch a write command in a butype=nofile buffer

On Wednesday, November 11, 2015 at 11:11:02 AM UTC-6, Jérôme Reybert wrote:
>
> I already tried the 'acwrite' mode. But the buffer content can be modified by both the user and the plugin. Then, if I set the 'acwrite' mode, I get a warning when I close the buffer.

If you expect the user to be making changes to the buffer, and those changes get applied...somehow...only when they write the buffer, why don't you WANT a warning when closing an unwritten buffer?

If you don't expect the user to be making changes, then you can set the 'nomodifiable' option to prevent them making changes.

--
--
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:

Post a Comment