Loading ...
Sorry, an error occurred while loading the content.

Re: open files on vim VimEnter event not load syntax for each buffer

Expand Messages
  • Sergey Vakulenko
    That is it, thanks a lot! ... --~--~---------~--~----~------------~-------~--~----~ You received this message from the vim_dev maillist. For more
    Message 1 of 3 , Aug 10, 2009
    • 0 Attachment
      That is it, thanks a lot!

      2009/8/10, Michal Kurgan <michal.kurgan@...>:
      >
      > On Sun, 9 Aug 2009 12:42:52 -0700 (PDT)
      > dsfdfsf <ppdlive@...> wrote:
      >
      >> There is problem, all opened buffers on VimEnter event have no syntax
      >> (syntax=[Empty]).
      >>
      >> [ ... ]
      >>
      >> Help me fellows!
      >>
      >
      > I may be wrong but i think it is because autocommands are not recursive to
      > prevent infinite chains of events. You can override this behaviour with
      > nested specifier.
      >
      > :help autocmd
      > :help autocmd-nested
      >
      > e.g.
      > autocmd VimEnter * nested call s:LoadBuffers()
      >
      > Hope this helps.
      >
      > --
      > Michal Kurgan
      >
      >
      >
      > >
      >

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.