ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Sandiford Kevin" <kevin@bigkev.plus.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: ANN: Updated Vim scripts for ConTeXt
Date: Thu, 20 Oct 2016 22:22:02 +0000	[thread overview]
Message-ID: <em6c994344-4d1a-4f01-95eb-fd03f39a342a@pluto> (raw)
In-Reply-To: <nticdi$l8u$1@blaine.gmane.org>

  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" <nvitacolonna@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 <nvitacolonna@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
___________________________________________________________________________________

  parent reply	other threads:[~2016-10-20 22:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-10 10:49 Nicola
2016-10-11  6:39 ` Jan Willem Flamma
2016-10-11  7:26   ` Nicola
2016-10-11  9:00     ` Nicola
2016-10-11  9:33     ` Henning Hraban Ramm
2016-10-11  9:46       ` Nicola
2016-10-12 10:18         ` DesdeChaves
2016-10-12 13:51           ` Nicola
2016-10-20 22:22         ` Sandiford Kevin [this message]
2016-10-21  1:05           ` Nicola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=em6c994344-4d1a-4f01-95eb-fd03f39a342a@pluto \
    --to=kevin@bigkev.plus.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).