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

Re: Feature request: Special window

Expand Messages
  • Benji Fisher
    ... [examples snipped] ... How about using the buftype option? For a special window, ... and then check the value of this option before trying to open a
    Message 1 of 2 , Sep 2, 2002
    • 0 Attachment
      Yegappan Lakshmanan wrote:
      > Hi all,
      > Some of the top rated/downloaded plugins from the vim.sourceforge.net
      > site (winmanager.vim, project.vim, taglist.vim), use a Vim window for
      > displaying the plugin specific information. There are problems in using
      > more than one of these plugins at the same time.
      [examples snipped]
      > If we can mark some windows as special windows and do not use those windows
      > for editing files, then this problem can be easily solved. This window will
      > be similar to the existing command-line window. A plugin can open a window
      > and mark it as a special window (similar to the scratch buffer), so that
      > other plugins and users cannot open files in that window. The plugin can
      > modify the text in the window.

      How about using the 'buftype' option? For a "special" window,

      :set buftype=nofile

      and then check the value of this option before trying to open a file for editing
      in a given window.

      HTH --Benji Fisher
    Your message has been successfully submitted and would be delivered to recipients shortly.