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

different colorschemes for different filetypes in the split window

Expand Messages
  • cyboman
    Does anybody know if there is a way to set different colorschemes for different filetypes in the split window? Any help is appreciated. -- You received this
    Message 1 of 3 , Nov 25, 2012
    • 0 Attachment
      Does anybody know if there is a way to set different colorschemes for different filetypes in the split window?

      Any help is appreciated.

      --
      You received this message from the "vim_use" 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
    • Salman Halim
      I d created a (rather unpopular) plugin a while ago to do this: http://www.vim.org/scripts/script.php?script_id=351 The problem is that the various windows
      Message 2 of 3 , Nov 25, 2012
      • 0 Attachment
        I'd created a (rather unpopular) plugin a while ago to do this: http://www.vim.org/scripts/script.php?script_id=351

        The problem is that the various windows won't look different; they will all have the current color scheme. The plugin just lets you change the color scheme for the current window.

        To use, set b:colorscheme in your ftplugins.

        Salman


        On Sun, Nov 25, 2012 at 9:00 PM, cyboman <rail.shafigulin@...> wrote:
        Does anybody know if there is a way to set different colorschemes for different filetypes in the split window?

        Any help is appreciated.

        --
        You received this message from the "vim_use" 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



        --
        سلمان حلیم

        --
        You received this message from the "vim_use" 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
      • Ben Fritz
        ... There is not. Vim globally applies :highlight commands which are used by colorschemes to set the colors. Different windows cannot have different colors
        Message 3 of 3 , Nov 26, 2012
        • 0 Attachment
          On Sunday, November 25, 2012 8:00:21 PM UTC-6, cyboman wrote:
          > Does anybody know if there is a way to set different colorschemes for different filetypes in the split window?
          >
          > Any help is appreciated.

          There is not. Vim globally applies :highlight commands which are used by colorschemes to set the colors. Different windows cannot have different colors defined for the same highlight groups.

          You could create a colorscheme which defines highly detailed colors for each different filetype of interest to get different colors for top-level syntax elements, but some things like the Normal background color and text color for unhighlighted items will be the same between the two still.

          --
          You received this message from the "vim_use" 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
        Your message has been successfully submitted and would be delivered to recipients shortly.