Aditya Mahajan wrote:
> On Wed, 3 Jan 2007, Hans Hagen wrote:
>
>> Aditya Mahajan wrote:
>> > On Wed, 3 Jan 2007, Aditya Mahajan wrote:
>> >
>> >> \executesystemcommand{ texmfstart bin:vim -e (and other options)
>> >> -c "source kpse:2context" ...etc...}
>> >>
>> >> We need to play around a bit to get " (quotes) to work inside a
>> call >> to texmfstart. Right now, texmfstart eats the quotes.
>> >
>> > How does write18 handle quotes? Right now, on a command prompt this
>> > works fine
>> >
>> > texmfstart --verbose bin:vim -c "set nu" t-vim.tex
>> >
>> > but in a test file
>> texmfstart --verbose bin:vim "-c set nu t-vim.tex"
>>
>> may work better
>
> Thanks. This works
>
> {\executesystemcommand
> {texmfstart bin:vim
> "-u NONE % No need to read unnessary configurations
> -e % run in ex mode
> % -V10log % For debugging only, will go away later.
> -c \letterbackslash"set noswapfile\letterbackslash"
> -c \letterbackslash"set tabstop=\@@vstab\letterbackslash"
> -c \letterbackslash"set cp\letterbackslash"
> -c \letterbackslash"syntax on\letterbackslash"
> -c \letterbackslash"set syntax=\@@vssyntax\letterbackslash"
> -c \letterbackslash"let
> contextstartline=\@@vsstart\letterbackslash"
> -c \letterbackslash"let
> contextstopline=\@@vsstop\letterbackslash"
> -c \letterbackslash"source kpse:2context.vim\letterbackslash"
> -c \letterbackslash"wqa\letterbackslash"
> " #1}}
>
>
> Basically need to esacpe the quote inside quote.
>
oh, so actually we should patch texexec to escape the tui stuff?
Hans
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
dev-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/dev-context