I wonder how it is possible to react to changes to a buffer's readonly flag both,
- after starting vi, e.g. with gvim -c "set ro" (not gvim -R), and
- when changing the flag via the command line.
So far I haven't found an event covering these cases.
I want to change the background ("highlight Normal") dynamically based on the buffer's state.
Any ideas?
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/e1f8f397-f7c4-4d8f-83bf-91fa36666e19n%40googlegroups.com.
Thursday, November 16, 2023
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment