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

Re: how to load vim source files based on filetype?

Expand Messages
  • Peng Yu
    On Nov 28, 7:23 am, Tony Mechelynck ... I do not really need to switch between different menu if I switch between different
    Message 1 of 3 , Nov 28, 2008
    • 0 Attachment
      On Nov 28, 7:23 am, Tony Mechelynck <antoine.mechely...@...>
      wrote:
      > On 28/11/08 02:50, Peng Yu wrote:
      >
      > > Hi,
      >
      > > I have vim-latex, perl.vim and bash-support.vim installed. I see menu
      > > items for latex, perl and bash, no matter what the file type is. I'm
      > > wondering if it is possible to configure vim so that it would not load
      > > them if the file type does not match.
      >
      > >http://vim-latex.sourceforge.net/
      > >http://www.vim.org/scripts/script.php?script_id=56
      > >http://www.vim.org/scripts/script.php?script_id=365
      >
      > > Thanks,
      > > Peng
      >
      > Gvim normally loads its menus once and for all, at startup (normally as
      > a result of "filetype plugin [indent] on" IIRC), but plugins may modify
      > the menus, and if you use "Syntax => Show filetypes in menu" the menus
      > will be reloaded.
      >
      > However, what you're asking for would require unloading and reloading
      > the menus whenever one moves from one split-window to another (since the
      > files in different split-windows may have different filetypes). It
      > /might/ be possible to do it by modifying your plugins, but I don't
      > think the game would be worth the candle.

      I do not really need to switch between different menu if I switch
      between different menus.

      Suppose I only start one file, I just want the menu associated with
      its filetype be loaded to speedup the loading.

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