On Mon, Jan 4, 2010 at 2:42 PM, Stahlman Family <[email protected]> wrote: > > Michael Maurer wrote: >> The following concerns the Txtfmt (The Vim Highlighter)-plugin by >> Brett Stahlmann. I hope this is not too specific for this list. >> I'm using Txtfmt with GVim under Windows XP SP3. After enabling all >> background colors via >> >> let b:txtfmt_cfg_bgcolormask=11111111 > > Michael, > b:txtfmt_cfg_bgcolormask is the internal variable used by the plugin; > setting it won't have any effect. (If you set it before the plugin > loads, it will be overwritten; if you set it afterward, it won't be able > to affect the syntax regions responsible for highlighting, which have > already been defined.) The option variable you should set is > g:txtfmtBgcolormask. > > :help txtfmtBgcolormask > > Note that this variable *must* be set *before* the plugin is loaded so > that it can affect the syntax regions created. If you're setting the > option globally, you probably want to put it in your .vimrc. > Alternatively, you could set it in an autocommand, or even in a "Txtfmt > modeline" within the file itself. Note that if you use a modeline, the > variable name is bgcolormask or bcm. E.g., > > vim:ft=txtfmt > txtfmt:bcm=01101010 > > :help txtfmt-modeline > > You can easily see which colors are active in a Txtfmt buffer (i.e., > which ones are defined by the syntax) by running... > > :ShowTokenMap<CR> > > Of course, this command is available only in a Txtfmt buffer. In theory, > it could actually yield different results in different Txtfmt buffers, > since option variables like txtfmtBgcolormask can be set either globally > (g:) or buffer-locally (b:), but I'm guessing that most users override > the color masks globally... > > One final note: for performance reasons, I would recommend activating > only the colors you plan to use. If you decide later that you want more, > you can always activate them at that time without adversely affecting an > existing file. As explained in the help, the number of colors activated > has a significant impact on the number of syntax regions created, which > in turn impacts the speed of syntax highlighting redraw... > > :help txtfmt-performance-considerations >
Thanks Brett, works like a charm. I turned off some colors and I think I notice a slight decrease in start-up time. Great 2.0, by the way! Cheers, Michael -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
