From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106984 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?B?SmFuLUVyaWsgSMOkZ2dsw7Zm?= Newsgroups: gmane.comp.tex.context Subject: Re: Setting up macvim in mac os catalina to work with LMTX Date: Wed, 22 Apr 2020 18:55:51 +0200 Message-ID: References: <20200422152244.A20C240386@pio-pvt-msa1.bahnhof.se> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: multipart/mixed; boundary="===============3914710188725440718==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="124993"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 22 18:56:13 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jRIfV-000WDK-Ae for gctc-ntg-context-518@m.gmane-mx.org; Wed, 22 Apr 2020 18:56:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2570D183530; Wed, 22 Apr 2020 18:55:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Up1dTOBSrIWp; Wed, 22 Apr 2020 18:55:56 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 202EE18350D; Wed, 22 Apr 2020 18:55:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 10B7A18350D for ; Wed, 22 Apr 2020 18:55:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p85mRekcyilu for ; Wed, 22 Apr 2020 18:55:53 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=213.80.101.71; helo=ste-pvt-msa2.bahnhof.se; envelope-from=janerik.hagglof@bahnhof.se; receiver= Original-Received: from ste-pvt-msa2.bahnhof.se (ste-pvt-msa2.bahnhof.se [213.80.101.71]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 1505818344D for ; Wed, 22 Apr 2020 18:55:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTP id A242B3FAA3 for ; Wed, 22 Apr 2020 18:55:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at bahnhof.se Original-Received: from ste-pvt-msa2.bahnhof.se ([127.0.0.1]) by localhost (ste-ftg-msa2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EzTs9CZCG72k for ; Wed, 22 Apr 2020 18:55:51 +0200 (CEST) Original-Received: from [192.168.1.72] (h-248-232.A400.priv.bahnhof.se [85.24.248.232]) (Authenticated sender: mb287648) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTPA id 7BFFF3FA98 for ; Wed, 22 Apr 2020 18:55:51 +0200 (CEST) In-Reply-To: <20200422152244.A20C240386@pio-pvt-msa1.bahnhof.se> X-Mailer: Apple Mail (2.3608.80.23.2.2) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:106984 Archived-At: --===============3914710188725440718== Content-Type: multipart/alternative; boundary="Apple-Mail=_7446D94C-0CC6-44B4-A9CF-C4C7EA8ED236" --Apple-Mail=_7446D94C-0CC6-44B4-A9CF-C4C7EA8ED236 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Output from :messages = =20 [ConTeXt] Typesetting... =20 Fel uppt=C3=A4cktes vid bearbetning av function = context#typeset[6]..39_typeset[2 ]..context#callback[1]..39_callback: rad 17: E40: Kan inte =C3=B6ppna felfil = /Users/janneman/Documents/CTX/GNUPLOT/test3.log > 22 apr. 2020 kl. 17:22 skrev janerik.hagglof = : >=20 > In what file do I put the path setting and which location? >=20 > Thanks and regards >=20 >=20 >=20 >=20 >=20 > Med V=C3=A4nlig H=C3=A4lsning=20 >=20 > Jan-Erik H=C3=A4ggl=C3=B6f >=20 >=20 > -------- Originalmeddelande -------- > Fr=C3=A5n: Nicola > Datum: 2020-04-22 16:51 (GMT+01:00) > Till: ntg-context@ntg.nl > =C3=84mne: Re: [NTG-context] Setting up macvim in mac os catalina to = work with LMTX >=20 > On 2020-04-21, Jan-Erik H=C3=A4ggl=C3=B6f = wrote: > > Hi ! > > > > I am curious about testing macvim and it seems doing fine in edit > > mode. But how do i set up the typesetting engine? > > > > As far as I understand, there is, the command :ConteXt with guidance > > from the wiki https://wiki.contextgarden.net/Vim > > > > > > But I do not understand how to customize it to be directed to the = path > > to my engine > > > > I=E2=80=99ve installed the LMTX in /Users/janneman/context-osx-64/ >=20 > I haven't tried LMTX yet, but you may configure the path to the = ConTeXt > executable you want to use by setting `g:context_mtxrun`, e.g.: >=20 > :let g:context_mtxrun=3D'/path/to/context/mtxrun' >=20 > Then, executing :ConTeXt will run the configured command. You may also > define shell enviroment variables, if needed. For instance, I have > configured Vim to use my installation of ConTeXt Beta as follows: >=20 > :let = g:context_mtxrun=3D'PATH=3D$HOME/path/to/context-beta/tex/texmf-osx-64/bin= :$PATH mtxrun' >=20 > > The installation works fine in TeXshop but still an error shows up = in > > macvim and the message dissappears very quick so there is not much > > time to read the cause of error. >=20 > You may show a log of Vim messages by typing :messages. > If you post the error message, I may better diagnose your issue. >=20 > > I have created the subdirectory .vim/ftplugin/ and put the = context.vim file there > > also the corresponding in .vim/compiler/context.vim > > > > which is copied from the program located in > > = /usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtime= >=20 > That's unnecessary. MacVim's runtime path is searched by default. > I recommend that you remove the files that you have copied into = ~/.vim. > ConTeXt in Vim works out of the box. >=20 > Nicola >=20 >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_7446D94C-0CC6-44B4-A9CF-C4C7EA8ED236 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Output from :messages

                =                     =                     =                     =     
[ConTeXt] = Typesetting...               =                     =            
Fel uppt=C3=A4cktes vid = bearbetning av function = context#typeset[6]..<SNR>39_typeset[2
]..context#callback[1]..<SNR>39_callback:
rad   17:
E40: Kan inte =C3=B6ppna felfil = /Users/janneman/Documents/CTX/GNUPLOT/test3.log

22 apr. = 2020 kl. 17:22 skrev janerik.hagglof <janerik.hagglof@bahnhof.se>:

In = what file do I put the path setting and which location?

Thanks and regards





Med V=C3=A4nlig H=C3=A4lsning 

Jan-Erik = H=C3=A4ggl=C3=B6f


-------- Originalmeddelande --------
Fr=C3=A5n: Nicola <nvitacolonna@gmail.com>
Datum: = 2020-04-22 16:51 (GMT+01:00)
=C3=84mne: Re: [NTG-context] Setting up macvim in = mac os catalina to work with   LMTX

On = 2020-04-21, Jan-Erik H=C3=A4ggl=C3=B6f <janerik.hagglof@bahnhof.se> wrote:
> = Hi !
>
> I am curious about testing = macvim and it seems doing fine in edit
> mode. But how = do i set up the typesetting engine?
>
> = As far as I understand, there is, the command :ConteXt with guidance
> from the wiki https://wiki.contextgarden.net/Vim
> = <https://wiki.contextgarden.net/Vim>
>
> But I do not understand how to = customize it to be directed to the path
> to my = engine
>
> I=E2=80=99ve installed the = LMTX in /Users/janneman/context-osx-64/

I = haven't tried LMTX yet, but you may configure the path to the ConTeXt
executable you want to use by setting `g:context_mtxrun`, = e.g.:

    :let = g:context_mtxrun=3D'/path/to/context/mtxrun'

Then, executing :ConTeXt will run the configured command. You = may also
define shell enviroment variables, if needed. For = instance, I have
configured Vim to use my installation of = ConTeXt Beta as follows:

   :let = g:context_mtxrun=3D'PATH=3D$HOME/path/to/context-beta/tex/texmf-osx-64/bin= :$PATH mtxrun'

> The installation works = fine in TeXshop but still an error shows up in
> macvim = and the message dissappears very quick so there is not much
> time to read the cause of error.

You may show a log of Vim messages by typing :messages.
If you post the error message, I may better diagnose your = issue.

> I have created the subdirectory = .vim/ftplugin/ and put the context.vim file there
> = also the corresponding in .vim/compiler/context.vim
>
> which is copied from the program located in
> = /usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtime=

That's unnecessary. MacVim's runtime path = is searched by default.
I recommend that you remove the = files that you have copied into ~/.vim.
ConTeXt in Vim = works out of the box.

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
_______________________________________________________________= ____________________
_________________________________________________________= __________________________
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
_______________________________________________________________= ____________________

= --Apple-Mail=_7446D94C-0CC6-44B4-A9CF-C4C7EA8ED236-- --===============3914710188725440718== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3914710188725440718==--