Dear Nicola, Jan-Erik, and John, Although you have explained about the way out of my problem, I am still in the problem. I need to learn more about vim. I’ll do more try following your advice and the explanation in wiki. Thank you again for your help. Best regards, Dalyoung
2021. 12. 14. 오전 8:56, ntg-context-request@ntg.nl 작성:
Send ntg-context mailing list submissions to ntg-context@ntg.nl
To subscribe or unsubscribe via the World Wide Web, visit https://mailman.ntg.nl/mailman/listinfo/ntg-context or, via email, send a message with subject or body 'help' to ntg-context-request@ntg.nl
You can reach the person managing the list at ntg-context-owner@ntg.nl
When replying, please edit your Subject line so it is more specific than "Re: Contents of ntg-context digest..."
Today's Topics:
1. Re: how to setup path of ConTeXtLMTX for MacVim? (Jan-Erik Hägglöf) 2. Re: circuitikz module seems broken (Hans Hagen) 3. Re: TeXWorks and synctex SOLVED (Bruce Horrocks)
----------------------------------------------------------------------
Message: 1 Date: Tue, 14 Dec 2021 00:48:25 +0100 From: Jan-Erik Hägglöf
To: mailing list for ConTeXt users Subject: Re: [NTG-context] how to setup path of ConTeXtLMTX for MacVim? Message-ID: <32566C08-2359-48DF-B24C-2AA2E3D02488@gmail.com> Content-Type: text/plain; charset="utf-8" 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
: 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 ___________________________________________________________________________________