From: "Jan-Erik Hägglöf via ntg-context" <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: "Jan-Erik Hägglöf" <skrantajanneman@gmail.com>
Subject: Re: how to setup path of ConTeXtLMTX for MacVim?
Date: Tue, 14 Dec 2021 00:48:25 +0100 [thread overview]
Message-ID: <32566C08-2359-48DF-B24C-2AA2E3D02488@gmail.com> (raw)
In-Reply-To: <A0B2DC49-EE04-40E7-86D7-88133BBAAAAC@me.com>
[-- Attachment #1.1: Type: text/plain, Size: 1875 bytes --]
let g:context_mtxrun = 'PATH=$HOME/context/context-osx-64/tex/texmf-osx-64/bin:$PATH mtxrun'
nnoremap <leader>å :ConTeXt<CR>
nnoremap <silent><buffer> <leader>ö :<c-u>call tex#preview()<cr>
nnoremap <silent><buffer> <leader>ä
\ :<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 = 'PATH=$HOME/ConTeXtLM/tex/texmf-osx-64/bin:$PATH mtxrun'
> let g:tex_flavor = "context"
>
> The result is
> 1. using “:ConTeXt” issued an error message: “E492: not an editor command: ConTeXt
> 2. using “make” issued an error message: "No targets specified and no makefile found. …"
> Pressing C-h, compiling started and succesfully ended. However, it use /usr/local/texlive/… not LMTX tex folder.
>
> Without context.vim, “:ConTeXt" and “:make" worked fine.
>
> I’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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 4479 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2021-12-13 23:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.944.1596035580.23406.ntg-context@ntg.nl>
2021-12-11 23:38 ` Jeong Dal via ntg-context
2021-12-12 15:25 ` Nicola via ntg-context
2021-12-13 12:46 ` Jeong Dal via ntg-context
2021-12-13 13:30 ` Jeong Dal via ntg-context
2021-12-13 23:48 ` Jan-Erik Hägglöf via ntg-context [this message]
2021-12-14 9:30 ` Nicola via ntg-context
[not found] <mailman.50.1639517476.1172.ntg-context@ntg.nl>
2021-12-15 14:59 ` Jeong Dal via ntg-context
[not found] <mailman.18.1639439807.1172.ntg-context@ntg.nl>
2021-12-14 14:37 ` Jeong Dal via ntg-context
2021-12-14 21:31 ` Jan-Erik Hägglöf via ntg-context
2021-12-15 12:45 ` Nicola via ntg-context
[not found] <mailman.1.1639306801.13114.ntg-context@ntg.nl>
2021-12-12 12:45 ` John Kitzmiller via ntg-context
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=32566C08-2359-48DF-B24C-2AA2E3D02488@gmail.com \
--to=ntg-context@ntg.nl \
--cc=skrantajanneman@gmail.com \
/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).