Friday, October 26, 2012

Re: Syntax highlighting colors if :hardcopy call from vim, hugly bold if call from the shell

On Friday, October 26, 2012 2:41:53 PM UTC-5, Luis wrote:
> Hello
>
> To make a .ps file with python code with syntax color I use:
>
> :hardcopy > %.ps
>
> That work well !
>
> But if I use it from bash:
>
> $ cat hardcopy.vim
> :hardcopy > %.ps
> $ vim -e -s my_code.py < hardcopy.vim
>
> I get a my_code.py.ps file with no color but hugly bold instead colors syntax highlight
>
> Luis



On Friday, October 26, 2012 2:41:53 PM UTC-5, Luis wrote:
> Hello
>
> To make a .ps file with python code with syntax color I use:
>
> :hardcopy > %.ps
>
> That work well !
>
> But if I use it from bash:
>
> $ cat hardcopy.vim
> :hardcopy > %.ps
> $ vim -e -s my_code.py < hardcopy.vim
>
> I get a my_code.py.ps file with no color but hugly bold instead colors syntax highlight
>

By passing -e -s to Vim, you are explicitly telling Vim to ignore initialization scripts. See :help -s-ex. Hence, you will have no syntax highlighting or colorscheme applied. Probably you will need to create a basic config file and pass it to Vim with the -u argument.

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

No comments:

Post a Comment