Skip to content

Commit

Permalink
update AnsiEsc with my fork with fix for #105
Browse files Browse the repository at this point in the history
Update to my fork master at:
https://github.com/rkitover/vim-plugin-AnsiEsc

Remove the doc from the bundled ansiesc tar, save 10k.

This adds ANSI code 49 to reset background color, and some other fixes
from powerman (some disable codes.)

The test file from ELLIOTTCABLE now displays correctly.
  • Loading branch information
rkitover committed May 30, 2015
1 parent ea3e242 commit 5cd46d7
Show file tree
Hide file tree
Showing 5 changed files with 2,170 additions and 2,504 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ vimcat.uu: vimcat
ConcealRetab.vim.uu: ConcealRetab.vim
uuencode ConcealRetab.vim ConcealRetab.vim > ConcealRetab.vim.uu

ansiesc.tar.uu: ansiesc/autoload/AnsiEsc.vim ansiesc/doc/AnsiEsc.txt ansiesc/doc/tags ansiesc/plugin/AnsiEscPlugin.vim ansiesc/plugin/cecutil.vim
ansiesc.tar.uu: ansiesc/autoload/AnsiEsc.vim ansiesc/plugin/AnsiEscPlugin.vim ansiesc/plugin/cecutil.vim
(cd ansiesc; tar cf ../ansiesc.tar .)
uuencode ansiesc.tar ansiesc.tar > ansiesc.tar.uu
rm -f ansiesc.tar
Expand Down
13 changes: 12 additions & 1 deletion ansiesc/autoload/AnsiEsc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@ fun! AnsiEsc#AnsiEsc(rebuild)
syn region ansiNone start="\e\[[01;]m" end="\e\["me=e-2 contains=ansiConceal
syn region ansiNone start="\e\[m" end="\e\["me=e-2 contains=ansiConceal

" disable bold/italic/etc. - no way to disable one attribute, so disable them all
syn region ansiNone start="\e\[22m" end="\e\["me=e-2 contains=ansiConceal
syn region ansiNone start="\e\[23m" end="\e\["me=e-2 contains=ansiConceal
syn region ansiNone start="\e\[24m" end="\e\["me=e-2 contains=ansiConceal
syn region ansiNone start="\e\[27m" end="\e\["me=e-2 contains=ansiConceal
syn region ansiNone start="\e\[29m" end="\e\["me=e-2 contains=ansiConceal

" code to reset background color
syn region ansiDefaultBg start="\e\[49m" end="\e\["me=e-2 contains=ansiConceal

syn region ansiBlack start="\e\[;\=0\{0,2};\=30m" end="\e\["me=e-2 contains=ansiConceal
syn region ansiRed start="\e\[;\=0\{0,2};\=31m" end="\e\["me=e-2 contains=ansiConceal
syn region ansiGreen start="\e\[;\=0\{0,2};\=32m" end="\e\["me=e-2 contains=ansiConceal
Expand Down Expand Up @@ -502,7 +512,8 @@ fun! AnsiEsc#AnsiEsc(rebuild)
" specific to the current file
call s:MultiElementHandler()

hi ansiNone cterm=NONE gui=NONE
hi ansiNone cterm=NONE gui=NONE
hi ansiDefaultBg ctermbg=NONE guibg=NONE

if &t_Co == 8 || &t_Co == 256
" ---------------------
Expand Down
135 changes: 0 additions & 135 deletions ansiesc/doc/AnsiEsc.txt

This file was deleted.

6 changes: 0 additions & 6 deletions ansiesc/doc/tags

This file was deleted.

Loading

0 comments on commit 5cd46d7

Please sign in to comment.