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

Re: :set background=... bug

Expand Messages
  • Bram Moolenaar
    ... Well, I don t know exactly what the docs say, but it s quite easy to make Vim load all syncolor.vim files, as most people will expect: ... ***************
    Message 1 of 6 , Jun 30, 2001
      "Christian J. Robinson" wrote:

      > The Vim6 documentation (:help 'background' & :help syncolor) suggests
      > (or at least implies) that setting the background option should
      > re-initialize highlighting the same as if you'd done ":syntax on".
      >
      > In Vim5, you did have to do an explicit ":syntax on" after changing
      > the value of 'background'. However, in Vim6, changing the value of
      > 'background' does cause Vim6 to re-initialize, but without
      > ~/.vim/after/syntax/syncolor.vim

      Well, I don't know exactly what the docs say, but it's quite easy to make Vim
      load all syncolor.vim files, as most people will expect:

      *** syntax.c~ Sat Jun 30 16:53:42 2001
      --- syntax.c Sat Jun 30 16:54:38 2001
      ***************
      *** 5863,5869 ****
      * If syntax highlighting is enabled load the highlighting for it.
      */
      if (get_var_value((char_u *)"syntax_on") != NULL)
      ! (void)cmd_runtime((char_u *)"syntax/syncolor.vim", FALSE);
      #endif
      }

      --- 5863,5869 ----
      * If syntax highlighting is enabled load the highlighting for it.
      */
      if (get_var_value((char_u *)"syntax_on") != NULL)
      ! (void)cmd_runtime((char_u *)"syntax/syncolor.vim", TRUE);
      #endif
      }


      --
      It was recently discovered that research causes cancer in rats.

      /// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
      ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim )))
      \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
    Your message has been successfully submitted and would be delivered to recipients shortly.