Eric Smith wrote:
I want a vim left in insert mode after n seconds of inactivity to
automatically
go into normal mode and tried:
au CursorHoldI * <Esc>
But this gives an error.
How?
In an autocommand, you need an ex-command, which <Esc> isn't. I suggest
:au CursorHoldI * stopinsert
Make sure 'updatetime' has a long enough value (the default is 4000, i.e., 4
seconds, which might be a little short for some people).
Best regards,
Tony.
--
The only problem with being a man of leisure is that you can never stop
and take a rest.