I have case where I would like to trigger the TextChanged
event manually without actually changing the text. Would that be possible? How?
I know it's hacky, but it would make my life easier right now. :)
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityWhat you are looking for is :doautocmd
. With this you can trigger all the autocmds in an event, or just those that match a specific pattern. Or you can scope based on autocmd group. For example, to trigger all the TextChanged events:
:doautocmd TextChanged
:doautocmd
?:doautocmd TextChanged
, then all autocmds triggered byTextChanged
will run?