From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106988 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 21:48:19 +0200 Message-ID: References: <5F148BD7-43F6-46B4-8EF6-1B503A2E01E4@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="===============0838573176406149449==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="96185"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 22 21:48:48 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 1jRLMV-000Osl-Hr for gctc-ntg-context-518@m.gmane-mx.org; Wed, 22 Apr 2020 21:48:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6E38D18352A; Wed, 22 Apr 2020 21:48:34 +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 95RcKJ4B0X7B; Wed, 22 Apr 2020 21:48:29 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8ECD0183530; Wed, 22 Apr 2020 21:48:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9A1D018352A for ; Wed, 22 Apr 2020 21:48:28 +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 2Q1_h_78bRaj for ; Wed, 22 Apr 2020 21:48:23 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=79.136.2.42; helo=pio-pvt-msa3.bahnhof.se; envelope-from=janerik.hagglof@bahnhof.se; receiver= Original-Received: from pio-pvt-msa3.bahnhof.se (pio-pvt-msa3.bahnhof.se [79.136.2.42]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id B334A1834D2 for ; Wed, 22 Apr 2020 21:48:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by pio-pvt-msa3.bahnhof.se (Postfix) with ESMTP id B4CF03F554 for ; Wed, 22 Apr 2020 21:48:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at bahnhof.se Original-Received: from pio-pvt-msa3.bahnhof.se ([127.0.0.1]) by localhost (pio-pvt-msa3.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YjudcnmaWv3e for ; Wed, 22 Apr 2020 21:48:21 +0200 (CEST) Original-Received: from [192.168.1.72] (h-248-232.A400.priv.bahnhof.se [85.24.248.232]) (Authenticated sender: mb287648) by pio-pvt-msa3.bahnhof.se (Postfix) with ESMTPA id B85B93F49D for ; Wed, 22 Apr 2020 21:48:21 +0200 (CEST) In-Reply-To: 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:106988 Archived-At: --===============0838573176406149449== Content-Type: multipart/alternative; boundary="Apple-Mail=_86495BE3-B49E-4ABE-88D1-FF094F65D27B" --Apple-Mail=_86495BE3-B49E-4ABE-88D1-FF094F65D27B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I managed to typeset with success by typing in :let g:context_mtxrun =3D = 'PATH=3D$HOME/context-osx-64/tex/texmf-osx-64/bin:$PATH mtxrun=E2=80=99 :ConTeXt When I put this into my .vimrc file nothing is working, do not even find = the context commands, so I removed the .vimrc and then it worked again. So the question is where do I put this line permanent because it is = strange to type this every time I want to typeset something. Regards Janne > 22 apr. 2020 kl. 16:49 skrev Nicola : >=20 > On 2020-04-21, Jan-Erik H=C3=A4ggl=C3=B6f = wrote: >> Hi ! >>=20 >> I am curious about testing macvim and it seems doing fine in edit >> mode. But how do i set up the typesetting engine? >>=20 >> As far as I understand, there is, the command :ConteXt with guidance >> from the wiki https://wiki.contextgarden.net/Vim >> >>=20 >> But I do not understand how to customize it to be directed to the = path >> to my engine >>=20 >> 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 >>=20 >> 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 > = __________________________________________________________________________= _________ --Apple-Mail=_86495BE3-B49E-4ABE-88D1-FF094F65D27B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 I = managed to typeset with success by typing in

:let g:context_mtxrun =3D = 'PATH=3D$HOME/context-osx-64/tex/texmf-osx-64/bin:$PATH = mtxrun=E2=80=99
:ConTeXt

When I put this = into my .vimrc file nothing is working, do not even find the context = commands, so I removed the .vimrc and then it worked = again.

So the question = is where do I put this line permanent because it is strange to type this = every time I want to typeset something.

Regards

Janne

22 apr. 2020 kl. 16:49 skrev Nicola <nvitacolonna@gmail.com>:

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=99= ve 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
_______________________________________________________________= ____________________

= --Apple-Mail=_86495BE3-B49E-4ABE-88D1-FF094F65D27B-- --===============0838573176406149449== 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== --===============0838573176406149449==--