sponsor Vim development Vim logo Vim Book Ad

XTermEsc : highlight xterm escape sequences

 script karma  Rating 1/1, Downloaded by 759  Comments, bugs, improvements  Vim wiki

created by
Andy Spencer
 
script type
syntax
 
description
This highlights text based on xterm escape sequences using the appropriate color. This is similar to the AnsiEsc script but does not depend on the Conceal patch.  (http://www.vim.org/scripts/script.php?script_id=302)

This is done using one of two modes and is configured by setting the g:xterm_trim_escapes variable. When set to 0, escape sequences will be left in the buffer and highlighted using the Ignore group. When set to 1 and the buffer is modifiable, escape sequences will be deleted and highlighting will be performed based on row-column matching. Row-column matching may not work well if the file is being edited but is appropriate under some circumstances. Note that this only affect the escape sequences themselves, not highlighted text.
 
install details
Copy xterm.vim to your local syntax directory and use `:setf xterm' when you want highlighting.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
xterm.vim 0.2 2010-06-05 7.0 Andy Spencer Bug fixes, check &modifiable before trying to delete escapes, highlight escapes with Ignore group
xterm.vim 0.1 2010-04-01 7.0 Andy Spencer Initial upload
ip used for rating: 18.188.168.28

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github