From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106985 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: BPJ Newsgroups: gmane.comp.tex.context Subject: Re: Setting up macvim in mac os catalina to work with LMTX Date: Wed, 22 Apr 2020 19:40:53 +0200 Message-ID: References: <20200422152244.A20C240386@pio-pvt-msa1.bahnhof.se> Reply-To: bpj@melroch.se, mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4713577344623127314==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="64479"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 22 19:41:35 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 1jRJNN-000Ghc-T1 for gctc-ntg-context-518@m.gmane-mx.org; Wed, 22 Apr 2020 19:41:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BD3CC183521; Wed, 22 Apr 2020 19:41:09 +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 kXki0__qyn8b; Wed, 22 Apr 2020 19:41:07 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A716518350D; Wed, 22 Apr 2020 19:41:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AFB3B18350D for ; Wed, 22 Apr 2020 19:41:06 +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 yJW-JCqoKgtf for ; Wed, 22 Apr 2020 19:41:05 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.175; helo=mail-lj1-f175.google.com; envelope-from=melroch@gmail.com; receiver= Original-Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 643F51834BA for ; Wed, 22 Apr 2020 19:41:05 +0200 (CEST) Original-Received: by mail-lj1-f175.google.com with SMTP id e25so3249854ljg.5 for ; Wed, 22 Apr 2020 10:41:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to; bh=kC7a/tdSsBvJjNt3wP3qgaiYvTafs+TwVdOhjT5RQ6I=; b=oj2RWaWbyl+L5jOdhRtnd4o7nrvtVa4heAapFIG9odAkxRjN7jevnszDgeXxidRcPF WJ1XQ3iqbYH2wpMki5YD2+4aAkrXLeO1zSitw9zbdtOaWdan8OpA1I8lk9lKaVsz2bCS bAystv7aNABQ77XzAuU1FQKwho7kXPOMa6Lf3wk2QvIRYL3HCiHcZcCGiEnlt8AQNkod fnnsqr42vwEPYbTRUOJZ1sKUgOqj/6TNi0uuF04qMWRw4UMv9GCwZ7nFqxOLfNkcc3z8 JQDO7PZ36cPFwT0r2cEpuj0m1bs0RFKswed3r7IzOyo4nGWfmd4LqHzDke91eeYvXzEX yFRA== X-Gm-Message-State: AGi0PuaUEahLtfoDxuFLgbTluqUm/PYlpxwh8vbybkZl8c3NiHRq/vCo /d+8EzKKX0J6GFW8ZRIlmteyqUYuFt+F8CsgN9kph4ah X-Google-Smtp-Source: APiQypK13L8gO8NY7zlc/jh1PJS31u1oaw17B1yUTBOc55VERBC99by6JMbXNYx65y+XCFxoRYdEd2xqaV6+KqOvG/M= X-Received: by 2002:a2e:7412:: with SMTP id p18mr16153361ljc.256.1587577264540; Wed, 22 Apr 2020 10:41:04 -0700 (PDT) In-Reply-To: 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:106985 Archived-At: --===============4713577344623127314== Content-Type: multipart/alternative; boundary="000000000000e80fc505a3e4a2d2" --000000000000e80fc505a3e4a2d2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You may want to put this in your .vimrc so that you get error messages in English. Personally I hate it when partly localized programs give me a mixture of Swedish and English! :-) (You may of course want to just include "messages" and leave out "language".) " force English menus & messages if has('multi_lang') if has('unix') " Unix, Linux, Mac OS X etc. language messages C else " Windows language messages en endif endif Secondly you may want to do this to get the messages history as editable text: :redir > messages.txt :messages :redir END :e messages.txt You can replace the first line with :redir @+> to get the text in the system clipboard instead of in a file. Hoppas detta =C3=A4r till n=C3=A5n hj=C3=A4lp! (Hope this helps!) /Benct -- Better --help|less than helpless Den ons 22 apr. 2020 18:59Jan-Erik H=C3=A4ggl=C3=B6f skrev: > Output from :messages > > > > *[ConTeXt] Typesetting...* > 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/tes= t3.log > > 22 apr. 2020 kl. 17:22 skrev janerik.hagglof = : > > 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 > 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 > > On 2020-04-21, Jan-Erik H=C3=A4ggl=C3=B6f wr= ote: > > 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/ > > 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/bi= n:$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/runtim= e > > 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 > > _________________________________________________________________________= __________ > > > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --000000000000e80fc505a3e4a2d2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You may want to put this in your .vimrc= so that you get
error messages in English.
Personally I hate it when partly localized programs give me = a
mixture of Swedish and English! :-)

(You may of course want to just inclu= de "messages" and
leave out "language= ".)

=C2=A0 =C2=A0 &= quot; force English menus & messages
=C2=A0 =C2= =A0 if has('multi_lang')
=C2=A0 =C2=A0 =C2= =A0 if has('unix') " Unix, Linux, Mac OS X etc.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 language messages C
=C2=A0 =C2=A0 =C2=A0 else " Windows
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 language messages en
=C2=A0= =C2=A0 =C2=A0 endif
=C2=A0 =C2=A0 endif=C2=A0
=

Secondly you may want to do t= his to get the messages history as
editable text:

=C2=A0 =C2=A0 :redir > = messages.txt
=C2=A0 =C2=A0 :messages
=C2=A0 =C2=A0 :redir END
=C2=A0 =C2=A0 :e = messages.txt

You can rep= lace the first line with

=C2=A0 =C2=A0 :redir @+>

to get the text in the system clipboard instead of in a
file.

Hoppas d= etta =C3=A4r till n=C3=A5n hj=C3=A4lp!
(Hope this he= lps!)

/Benct



--
Better --help|less than helpless

=
Den ons 22= apr. 2020 18:59Jan-Erik H=C3=A4ggl=C3=B6f <janerik.hagglof@bahnhof.se> skrev:
Output from :messages

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

22 apr. 2020 kl. 17:22 skre= v janerik.hagglof <janerik.hagglof@bahnhof.se>:
In what file do I put the path se= tting and which location?

Thanks and regards




Med V=C3=A4nlig H=C3=A4lsning=C2=A0

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 o= s catalina to work with =C2=A0 LMTX

On 2020-04-21, Jan-Erik H=C3=A4ggl= =C3=B6f <janerik.hagglof@bahnhof.se> wrote:
> Hi !<= br>>
> I am curious about testing macvim and it seems doing fine i= n edit
> mode. But how do i set up the typesetting engine?
>> As far as I understand, there is, the command :ConteXt with guidance<= br>> from the wiki https://wiki.contextgarden.net/Vim
&g= t; <https://wiki.contextgarden.net/Vim>
>
> = But I do not understand how to customize it to be directed to the path
&= gt; 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 c= onfigure the path to the ConTeXt
executable you want to use by setting `= g:context_mtxrun`, e.g.:

=C2=A0=C2=A0=C2=A0 :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:

=C2=A0=C2=A0 :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 u= p 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 b= etter diagnose your issue.

> I have created the subdirectory .vim= /ftplugin/ and put the context.vim file there
> also the correspondin= g in .vim/compiler/context.vim
>
> which is copied from the pro= gram located in
> /usr/local/Cellar/macvim/8.2-163/MacVim.app/Content= s/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 a= s well, please add an entry to the Wiki!

maillist : ntg-context@ntg.= nl / http://www.ntg.nl/mailman/listinfo/ntg-conte= xt
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanh= et.net
archive=C2=A0 : https://bitbucket.org= /phg/context-mirror/commits/
wiki=C2=A0=C2=A0=C2=A0=C2=A0 : http://c= ontextgarden.net
___________________________________________________= ________________________________
_________________________________= __________________________________________________
If your question is o= f interest to others as well, please add an entry to the Wiki!

maill= ist : ntg-context@ntg.nl / http://www.ntg.nl/mailm= an/listinfo/ntg-context
webpage =C2=A0: http://www.pragma-ade.nl = / http://context.aanhet.net
archive =C2=A0: = https://bitbucket.org/phg/context-mirror/commits/
wiki =C2=A0=C2=A0= =C2=A0=C2=A0: http://contextgarden.net
______________________________= _____________________________________________________

____________________________________________________= _______________________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / http://= www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://= context.aanhet.net
archive=C2=A0 : https://bitbucket.org/ph= g/context-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000e80fc505a3e4a2d2-- --===============4713577344623127314== 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== --===============4713577344623127314==--