Hi  Nicola,

Thanks for the vim scripts, I've been looking for something like this for a while.

Just a minor problem, on windows the :make or :ConTeXt commands fail if there is a space in the path or file name.

Changing fnameescape() to shellescape() in the definition of l:makeprg in line 21 of compiler/context.vim seems to fix this, i.e.

let &l:makeprg =
        \   'cd ' . shellescape(fnamemodify(bufname("%"), ':p:h'))
\ . ' && ' . get(b:, 'context_mtxrun', get(g:, 'context_mtxrun', 'mtxrun'))
        \ . ' --script context --autogenerate --nonstopmode --synctex='
\ . (get(b:, 'context_synctex', get(g:, 'context_synctex', 0)) ? '1' : '0') \ . ' ' . get(b:, 'context_extra_options', get(g:, 'context_extra_options', ''))
        \ . ' ' . shellescape(expand('%:p:t'))

Regards,
Kevin

------ Original Message ------
From: "Nicola" <nvitacolo...@gmail.com>
To: ntg-context@ntg.nl
Sent: 11/10/2016 10:46:30
Subject: Re: [NTG-context] ANN: Updated Vim scripts for ConTeXt

On 2016-10-11 09:33:36 +0000, Henning Hraban Ramm said:

Am 2016-10-11 um 09:26 schrieb Nicola <nvitacolo...@gmail.com>:

No, everything just works(tm) :) See :help ftplugin-overrule for the details.

No, unfortunately not everything:

Error detected while processing /Users/hraban/.vim/syntax/context.vim:
line   22:
E121: Undefined variable: v:t_list
E15: Invalid expression: type(s:context_include) ==# v:t_list
Error detected while processing /Users/hraban/.vim/ftplugin/context.vim:
line   18:
E539: Illegal character <j>: formatoptions+=tjcroql2


Maybe my vim is too old?
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 23 2016 20:20:57)

Yes, the scripts are meant to be used with Vim 8. You should be able to
work around those errors by replacing v:t_list with 3 and removing 'j'
from formatoptions, but other things, like asynchronous typesetting,
won't work anyway.

Nicola


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to