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

Re: different colorschemes for different filetypes in the split window

Expand Messages
  • 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 1 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.