I've just released version 0.08 of my Text::VimColor module. It should appear on CPAN shortly.
This version just fixes some bugs and improves the test suite. One of the bugs was a simple mistake by myself, but the other two were Vim being a bit weird:
- Mario Xerri reported that tab characters in the input files
were getting turned into the two characters
^Iwhen they should be left alone. The patch he supplied fixes this by telling Vim that tab is a character that can be sent directly to the terminal:" Expand tabs. Without this they come out as '^I'. set isprint+=9
so when Vim is being run by my Perl module with no terminal it must somehow get confused when saving, or perhaps my Vim script for extracting the syntax colouring info gets stuck on non-printing characters. Anyway, it's fixed now. I should maybe think about doing the same for other characters, because there's no reason for my module to mess with them as they pass through. - The other problem was that the filetype wasn't being detected
anymore based on the file extension. It used to work, I think.
I've managed to fix it by having the Vim script force Vim to
have a second go at guessing the filetype, using the
filetype detectcommand. This is also probably something to do with the rather unusual environment Vim is running in.
Now of course I'll regenerate my blog and find that the new version doesn't work at all :-)