[vim/vim] OptionSet not triggered for change of 'modified' (#1286)

34 views
Skip to first unread message

Justin M. Keyes

unread,
Nov 26, 2016, 6:21:26 AM11/26/16
to vim/vim

With this autocmd:

autocmd OptionSet modified echom localtime()

modify any file. The autocmd is not triggered.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub

Christian Brabandt

unread,
Nov 26, 2016, 8:28:47 AM11/26/16
to vim/vim

I suppose it works, if you do :set modified? It's a known issue that it only works when setting the option directly and not by simply flipping the C state variables.

Sergey Vlasov

unread,
Jul 31, 2018, 8:54:50 AM7/31/18
to vim/vim, Subscribed

Is there a workaround that works with autocmd?

David Briscoe

unread,
4:38 PM (6 hours ago) 4:38 PM
to vim/vim, Subscribed
idbrii left a comment (vim/vim#1286)

Not sure it can be backported to vim, but nvim made OptionSet work for modified: neovim/neovim#35610


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/1286/4537089475@github.com>

Reply all
Reply to author
Forward
0 new messages