[NTG-context] Setting up macvim in mac os catalina to work with LMTX
Jan-Erik Hägglöf
janerik.hagglof at bahnhof.se
Wed Apr 22 18:47:29 CEST 2020
Here is my log
Last login: Wed Apr 22 18:37:07 on console
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Jan-Eriks-Air:~ janneman$ nvim
resolvers | resolving | using suffix based filetype 'scripts'
resolvers | resolving | remembering file 'mtx-contexts.lua' using hash 'lu
a::mtx-contexts.lua'
resolvers | resolving | remembered file 'mtx-context.lua'
resolvers | resolving | using suffix based filetype 'scripts'
resolvers | resolving | remembering file 'mtx-t-context.lua' using hash 'l
ua::mtx-t-context.lua'
resolvers | resolving | using suffix based filetype 'scripts'
resolvers | resolving | remembering file 'mtx-t-contexts.lua' using hash '
lua::mtx-t-contexts.lua'
resolvers | resolving | remembered file 'mtx-t-context.lua'
resolvers | resolving | using suffix based filetype 'scripts'
resolvers | resolving | remembering file 'context.lua' using hash 'lua::co
ntext.lua'
mtxrun | unknown script 'context.lua' or 'mtx-context.lua'
skal returnerade 1
I’m using neovim here and the same error appeared but now it was more informative
Here is my .vimrc
let g:context_mtxrun = 'PATH=$HOME/context-osx-64/tex/texmf-osx-64/bin:$PATH mtxrun'
let g:context_extra_options = '--autogenerate --script context --directives="system.showerror" --autopdf —purgeall'
But it seems to have no effect
> 22 apr. 2020 kl. 17:22 skrev janerik.hagglof <janerik.hagglof at bahnhof.se>:
>
> In what file do I put the path setting and which location?
>
> Thanks and regards
>
>
>
>
>
> Med Vänlig Hälsning
>
> Jan-Erik Hägglöf
>
>
> -------- Originalmeddelande --------
> Från: Nicola <nvitacolonna at gmail.com>
> Datum: 2020-04-22 16:51 (GMT+01:00)
> Till: ntg-context at ntg.nl
> Ämne: Re: [NTG-context] Setting up macvim in mac os catalina to work with LMTX
>
> On 2020-04-21, Jan-Erik Hägglöf <janerik.hagglof at 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’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='/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='PATH=$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 at 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 at 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 part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200422/f05d936d/attachment.htm>
More information about the ntg-context
mailing list