Changes

Jump to navigation Jump to search
664 bytes added ,  16:12, 24 August 2022
Add a note about the update for Vim 9
http://www.vim.org/
This page is about editing ConTeXt source in Vim, gVim, MacVim, NeoVim, and other Vim clones.The page describes the scripts available with in Vim v8.0.0055 or later. If you are using Vim 7, see
''Using the scripts with an older Vim'' below.
 
<b>If you feel that something is missing, please contribute!</b>
 
Information about providing feedback is in the header of the scripts.
== Using ConTeXt in Vim ==
They are part of the official Vim 7, and were expanded and improved in Vim 8.
Starting with Vim 9.0.0218, the scripts supporting ConTeXt in Vim have been rewritten in Vim 9 script and they can be integrated with the syntax files generated by <btt>If you feel that something is missing, please contribute!mtxrun</btt>. You may add the additional syntax files as follows:  mkdir -p ~/.vim/syntax/shared cd ~/.vim/syntax/shared mtxrun --script interface --vim
Information about providing feedback The above assumes that your Vim configuration is in the header `~/.vim` directory, of course. Adding those files is not mandatory, but they will add lots of keywords for auto-completion and will improve the scriptssyntax coloring for MetaFun code.
=== Asciicast ===
:ConTeXt
to compile the document in the current buffer.
Typesetting happens in the background if you are using Vim 8.0.0047 or later,
so you may continue working on your document. If there are errors, the quickfix window opens automatically
to show the errors (one per line). The cursor stays in the main document, so your typing workflow is not
You may check the status of your ConTeXt jobs with <tt>:ConTeXtJobStatus</tt>, and you may stop all
running jobs with <tt>:ConTeXtStopJobs</tt> (these commands are available only in Vim 8.0.0047 or later).
An alternative way to typeset a document is to use <tt>:make</tt>. Set the current working
runtime/indent/{context,mf,mp}.vim
runtime/syntax/{context,mf,mp}.vim
 
<b>Note:</b> the runtime scripts in Vim 9.0.0218 or later are written in Vim 9 script (the new scripting language embedded in Vim) and there is no guarantee that they will work with older versions of Vim!
If you get the following error when you open a ConTeXt or MetaPost document:
134

edits

Navigation menu