Sampan Xu wrote:
...[snip]...


Have you tried Txtfmt (The Vim Highlighter)?

http://www.vim.org/scripts/script.php?script_id=2208

It's a token-based highlighter that lets you set the foreground/background color, as well as the format attributes (bold, underline, italic, etc...) of arbitrary text regions. Highlighting is accomplished with tokens inserted by intuitive mappings, and as of Vim 7.3 (and Txtfmt 2.4), the tokens are *completely* concealed, so they don't change the appearance of the document. (Before the "conceal" feature was added to Vim, each token looked like a single space.)

Note that the 3 types of tokens (fg color, bg color, format) are "orthogonal", so the same piece of text could be (e.g.) bold-italic, red

text on blue background. Of course, if you want to change foreground color only, you can do that too. In fact you can disable colors selectively to avoid creating highlight regions for foreground/background colors you don't need. The fg/bg colors are independently configurable with options, and you can enable up to 8 of
each.

Sincerely,
Brett Stahlman

Best Wishes,
  robert



Hello
     This Txtfmt seems great for personal color strategy. However, I
tried to
Install this into two computer, both failed with many many many error
once i
Run "set filetype=txtfmt" in command mode or trigger with modeline. My
gvim Is the version of 7.3. in order to avoid the conflict with other
scripts, i
Uninstall gvim and then install without anyone script tool.  But still
failed
To run this tool "txtfmt".
      Anyone have a similar experience with it ?

Sampan,
How did you install Txtfmt? I just downloaded and installed the latest version (2.4) and tested with Vim 7.3, to be sure there were no problems with the package file; I saw no issues. I installed as follows...

cd ~/.vim
tar -xzvf ~/Download/txtfmt_v2.4.tar.gz

Note that the easiest way to test is to run...

        :MakeTestPage

...which, as the name suggests, makes a test page containing all possible color/format permutations. Of course, you should also be able simply to `set ft=txtfmt', as you seem to have done. I tested both methods just now. Can you tell me what sort of errors you're seeing. The first few errors should be the most enlightening.

Thanks,
Brett Stahlman



--
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

Reply via email to