On 08-Nov-2011 01:28, Kana Natsuno wrote:
> [...]
>
> It means that :doautocmd triggers modeline processing in any context.
I have occasionally used :doautocmd, but that didn't cause any problems for me.
I do share your concerns, a clear separation (e.g. :domodelines) or at least
good explanation would be appreciated.
> For example, I have something like the following in my vimrc to
> indicate
> the same code will be run at both CursorHold and CursorHoldI events:
>
> augroup MyConfig
> autocmd CursorHold * call s:save_stat()
> autocmd CursorHoldI * doautocmd MyConfig CursorHold
> augroup END
You can group events, this makes it even clearer, and no need for :doautocmd:
augroup MyConfig
autocmd CursorHold,CursorHoldI * call s:save_stat()
augroup END
-- regards, ingo
--
You received this message from the "vim_dev" 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