From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113748 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?q?Jan-Erik_H=C3=A4ggl=C3=B6f_via_ntg-context?= Newsgroups: gmane.comp.tex.context Subject: Re: how to setup path of ConTeXtLMTX for MacVim? Date: Tue, 14 Dec 2021 00:48:25 +0100 Message-ID: <32566C08-2359-48DF-B24C-2AA2E3D02488@gmail.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: multipart/mixed; boundary="===============3943103735393950280==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7951"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?B?SmFuLUVyaWsgSMOkZ2dsw7Zm?= To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 14 00:48:50 2021 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 1mwv3q-0001s5-Rb for gctc-ntg-context-518@m.gmane-mx.org; Tue, 14 Dec 2021 00:48:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BA4A02A1C9A; Tue, 14 Dec 2021 00:48:33 +0100 (CET) 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 38BWAk1kjfak; Tue, 14 Dec 2021 00:48:32 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5BBFA2A1A55; Tue, 14 Dec 2021 00:48:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6C8322A1A55 for ; Tue, 14 Dec 2021 00:48:30 +0100 (CET) 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 HA5m8L5DWqWj for ; Tue, 14 Dec 2021 00:48:28 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.44; helo=mail-lf1-f44.google.com; envelope-from=skrantajanneman@gmail.com; receiver= Original-Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 468CC2A183C for ; Tue, 14 Dec 2021 00:48:28 +0100 (CET) Original-Received: by mail-lf1-f44.google.com with SMTP id t26so33849770lfk.9 for ; Mon, 13 Dec 2021 15:48:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=k810wCIO7Hz95g16S1VuJhGmEck6mslng/XNv1Furv4=; b=C2JXvWrtcFlNFH4lZJ31H02e2mNuQLg3a3/BZFcMAXlvl/Qca7JSKCxUr/iKeoLRpV K+62GtNtLd8HUIJ6Zs/zJPt2LOZN7NVBSmJ57zPgJKBW28QlYNqD5/YElE19UpCMFjud QhdRtBPnWwuBCplOSZ4xjd8ocDzC/rM/e4Kzslzwf7e9JHF9Nev5PdUeKgkxiKJ4I5cU mLjIU1j7EHDCEuAoz3qQRB2GAh23eZpez70kd9rwcHXAS7nEMW/vFw6Uzo4dbCDR4BFS OcWqm55+7HGGEB9yB8Ys8FpHlthW4nzB6anhmmSe98+fsddBYAzsDGJSSBO9iYT6yfLG RTjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=k810wCIO7Hz95g16S1VuJhGmEck6mslng/XNv1Furv4=; b=UStChzkwsLszoJp1xrNtdTEHizFtpsW894ztJtci5vLdfgH4dyPLS7CzPyPx3Gps/U 5Vd2xfzklQHepr20hJS2Nz+dOrKZzLFtkbACz7V27i9iTw69ozjEYs42ff/R8bw1vpjz r60tvyYN81xXDfU0Ia28Xiw1T9TmJnyMp3F+/uZr/REOK2it4tfst7sAAy5xv3uPx4OH yHKBF7QJN4+M+BCedQOHNAVVmj7M83eFnY23g8Iyx+7Vu9rGq/wTqhAXUk+CnAuaR91i ZYzFkORCC4G6Uw8dLyivYtwupFJKm0gCQ56PvA89TkI7F0aQA3DVMuZV4lWQH48OV7bP XwCg== X-Gm-Message-State: AOAM531JjfzfxyhCfb+wGs93SKXk4Wmz5rpq6XOmUVVKL6LDjF3V6nNo pVR8Nb6JIfqZJq7YcyemLjqWLomhD/8= X-Google-Smtp-Source: ABdhPJz48Jk8nKnhwW4hnUmfDx7nxsWQ5BlUOmJNxxwpIvoYyBXukKPyWPlOVGm1/DxGpl/GRE1+wQ== X-Received: by 2002:a05:6512:3b27:: with SMTP id f39mr1358922lfv.67.1639439306909; Mon, 13 Dec 2021 15:48:26 -0800 (PST) Original-Received: from smtpclient.apple (h-158-174-22-138.NA.cust.bahnhof.se. [158.174.22.138]) by smtp.gmail.com with ESMTPSA id p22sm1600884lfe.257.2021.12.13.15.48.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Dec 2021 15:48:26 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.13) 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:113748 Archived-At: --===============3943103735393950280== Content-Type: multipart/alternative; boundary="Apple-Mail=_601C28D3-6E1E-437B-BAFA-5BADA82C4F07" --Apple-Mail=_601C28D3-6E1E-437B-BAFA-5BADA82C4F07 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 let g:context_mtxrun =3D = 'PATH=3D$HOME/context/context-osx-64/tex/texmf-osx-64/bin:$PATH mtxrun' nnoremap =C3=A5 :ConTeXt nnoremap =C3=B6 :call tex#preview() nnoremap =C3=A4 \ :call tex#goto_texshop(expand("%:p"), line('.'), col('.'), 1, = 1) Here is my snippet from my personal context.vim file I see that you have :! and that means that you instruct vim to execute a = shell command. Just write :ConTeXt and it should work fine > 13 dec. 2021 kl. 14:30 skrev Jeong Dal via ntg-context = : >=20 > Dear John, Nicola, >=20 > I created a file context.vim under the folder ~/.vim/after/ftplugin/ = which contains >=20 > map > :w:!ConTeXt > let g:context_mtxrun =3D = 'PATH=3D$HOME/ConTeXtLM/tex/texmf-osx-64/bin:$PATH mtxrun' > let g:tex_flavor =3D "context" >=20 > The result is > 1. using =E2=80=9C:ConTeXt=E2=80=9D issued an error message: = =E2=80=9CE492: not an editor command: ConTeXt > 2. using =E2=80=9Cmake=E2=80=9D issued an error message: "No targets = specified and no makefile found. =E2=80=A6"=20 > Pressing C-h, compiling started and succesfully ended. However, it use = /usr/local/texlive/=E2=80=A6 not LMTX tex folder. >=20 > Without context.vim, =E2=80=9C:ConTeXt" and =E2=80=9C:make" worked = fine. >=20 > I=E2=80=99ll do more test.=20 >=20 > Thank you. > Best regards, >=20 > Dalyoung >=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=_601C28D3-6E1E-437B-BAFA-5BADA82C4F07 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
let g:context_mtxrun =3D = 'PATH=3D$HOME/context/context-osx-64/tex/texmf-osx-64/bin:$PATH = mtxrun'

nnoremap= <leader>=C3=A5 :ConTeXt<CR>
nnoremap = <silent><buffer> <leader>=C3=B6 :<c-u>call = tex#preview()<cr>
nnoremap = <silent><buffer> <leader>=C3=A4
    \ :<c-u>call = tex#goto_texshop(expand("%:p"), line('.'), col('.'), 1, = 1)<cr>

Here is my snippet from my personal context.vim = file

I see = that you have :! and that means that you instruct vim to execute a shell = command.

Just = write :ConTeXt<CR> and it should work fine

13 dec. = 2021 kl. 14:30 skrev Jeong Dal via ntg-context <ntg-context@ntg.nl>:

Dear = John, Nicola,

I created a file context.vim = under the folder ~/.vim/after/ftplugin/ which contains

map = <C-h>><Esc> = :w<CR>:!ConTeXt<CR>
let = g:context_mtxrun =3D 'PATH=3D$HOME/ConTeXtLM/tex/texmf-osx-64/bin:$PATH = mtxrun'
let g:tex_flavor =3D = "context"

The result is
1. using =E2=80=9C:ConTeXt=E2= =80=9D   issued an error message:  =E2=80=9CE492: not an = editor command: ConTeXt
2. using =E2=80=9Cmake=E2=80=9D= issued an error message: "No targets specified and no makefile found. = =E2=80=A6" 
Pressing C-h, compiling started and succesfully = ended. However, it use /usr/local/texlive/=E2=80=A6 not LMTX tex = folder.

Without = context.vim, =E2=80=9C:ConTeXt" and =E2=80=9C:make" worked = fine.

I=E2=80=99= ll do more test. 

Thank you.
Best regards,

Dalyoung

___________________________________________________= ________________________________
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=_601C28D3-6E1E-437B-BAFA-5BADA82C4F07-- --===============3943103735393950280== 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== --===============3943103735393950280==--