ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Nicola <nvitacolonna@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: t-vim module: no highlighting for custom filetypes
Date: Fri, 21 May 2021 12:56:16 -0000 (UTC)	[thread overview]
Message-ID: <s88alg$vl7$1@ciao.gmane.io> (raw)
In-Reply-To: <s88364$uhf$1@ciao.gmane.io>

On 2021-05-21, Nicola <nvitacolonna@gmail.com> wrote:
> For some reason, the vim module has stopped highlighting code associated
> to custom filetypes (it still works for built-in filetypes).

I think I have found the culprit. In t-vim.tex, lines 63-88, Vim is
called with --clean. That option appears *after* -u, effectively
overriding it. Moving --clean as the first option (or, better, removing
it) solves my issue.

Some remarks. The module has this comment:

       --clean % dont load scada [sic] file (nvim)

If the purpose of the option is to avoid loading a shada file, `-i NONE`
(which is already there) should be enough.

In Vim, --clean is not strictly necessary, because it is effectively
a shorthard for `-N -i NONE --noplugin`. In Neovim, the meaning might be
slightly different. Which brings me to the next paragraph.

My recommendation would be not to care about Neovim. It is *not*
a drop-in replacement for Vim and not meant to be compatible with Vim
(it has already diverged from Vim in significant ways). Supporting both
is likely going to become more and more difficult as time goes by.

Anyway, if you do want to support both, I'd suggest at least to
segregate the two commands, even if currently they may be (almost)
identical.

Hope this helps!
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2021-05-21 12:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-21 10:48 Nicola
2021-05-21 12:56 ` Nicola [this message]
2021-05-21 14:28   ` Aditya Mahajan
2021-05-21 19:37     ` Nicola
2021-05-22  6:58       ` Hans Hagen
2021-05-22 16:15         ` Aditya Mahajan
2021-05-23 10:04           ` Hans Hagen
2021-05-23 22:38             ` Aditya Mahajan
2021-05-24 19:24       ` Aditya Mahajan
2021-05-27 19:51         ` Nicola
2021-05-27 20:16           ` Aditya Mahajan
2021-05-27 20:27             ` Nicola
2021-05-28  6:41               ` Aditya Mahajan
2021-05-28 10:46                 ` 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='s88alg$vl7$1@ciao.gmane.io' \
    --to=nvitacolonna@gmail.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).