Ben Fritz schrieb:
> Consider:
>
> augroup misc
> au!
> autocmd VimEnter * augroup misc | exec 'autocmd WinEnter * let
> w:created=1' | augroup END
> augroup END
>
> The "augroup END" contained within the autocmd matches as the end
> pattern for the vimAugroup syntax item. This causes the real end of
> the augroup to not be highlighted, and it also ends the fold for the
> augroup prematurely.
A very rare case, isn't it? You can rewrite this as
augroup misc
au!
autocmd VimEnter * autocmd misc WinEnter * let w:created = 1
augroup END
" or even
augroup misc
au!
autocmd WinEnter * let w:created = 1
augroup END
" Actually, I don't see how this differs from the first autocmd.
--
Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---