Converting Blusfish syntax-highlighted PHP code in to a PDF

Gabriel Dragffy dragffy at yandex.ru
Fri Apr 13 17:21:26 UTC 2007


Nicolas Kaiser wrote:
> On 4/13/07, Gabriel Dragffy <dragffy at yandex.ru> wrote:
>> Nicolas Kaiser wrote:
> 
>>> Manually launching vim and printing the file, the same line would expand to
>>>
>>> vim index.php
>>> :ha >trial.ps
>>> :q
> 
>> Aha! I tried this and it didn't work. Because I was inside vim I got the
>> benefit of an error message, which was "E319: Sorry, the command is not
>> available in this version".... What gives?
> 
> Whoa. This same error? http://www.lornajane.net/tiny-vim-on-ubuntu
> 
> Cheers,
> n.
> 

Nic, thanks so much for your help. According to that link you sent I 
needed to take several steps to install the full vim, in the end all I 
needed to do was "sudo aptitude install vim -y".

Your command works flawlessly, once I have done "syntax enable" and I 
get a great .ps file. My final question is "what about PDF?". I have 
found that I can 'cat' the .ps file and pipe that in to lp, but all my 
attempts to integrate this operation in VIM's command line have failed - 
  can you suggest something?

I'm working along the lines of "ha>trial.ps<lp -d 'pdf-color'" but 
obviously it is flawed, but my knowledge of commands isn't good enough 
to fix it.

Thanks again.
Regards
Gabe





More information about the ubuntu-users mailing list