/usr/share/vim/vim91/doc
NameSizeModeActions
arabic.txt122040644editdlrm
autocmd.txt778720644editdlrm
builtin.txt4320010644editdlrm
change.txt807140644editdlrm
channel.txt591030644editdlrm
cmdline.txt531810644editdlrm
debug.txt68960644editdlrm
debugger.txt54430644editdlrm
develop.txt231180644editdlrm
diff.txt183410644editdlrm
digraph.txt624430644editdlrm
editing.txt774990644editdlrm
eval.txt1732320644editdlrm
farsi.txt5230644editdlrm
filetype.txt306220644editdlrm
fold.txt247300644editdlrm
ft_ada.txt182120644editdlrm
ft_context.txt51610644editdlrm
ft_mp.txt47060644editdlrm
ft_ps1.txt21870644editdlrm
ft_raku.txt42190644editdlrm
ft_rust.txt198000644editdlrm
ft_sql.txt306940644editdlrm
gui.txt534990644editdlrm
gui_w32.txt191230644editdlrm
gui_x11.txt293180644editdlrm
hangulin.txt5980644editdlrm
hebrew.txt56660644editdlrm
help.txt94910644editdlrm
help.txt.vim-tiny13500644editdlrm
helphelp.txt160600644editdlrm
howto.txt29160644editdlrm
if_cscop.txt193250644editdlrm
if_lua.txt185460644editdlrm
if_mzsch.txt119410644editdlrm
if_ole.txt71170644editdlrm
if_perl.txt114510644editdlrm
if_pyth.txt408200644editdlrm
if_ruby.txt85160644editdlrm
if_sniff.txt2710644editdlrm
if_tcl.txt229480644editdlrm
indent.txt436990644editdlrm
index.txt823730644editdlrm
insert.txt881240644editdlrm
intro.txt396230644editdlrm
map.txt811760644editdlrm
mbyte.txt586400644editdlrm
message.txt319310644editdlrm
mlang.txt81600644editdlrm
motion.txt543870644editdlrm
netbeans.txt379570644editdlrm
options.txt4194020644editdlrm
os_390.txt47410644editdlrm
os_amiga.txt54660644editdlrm
os_beos.txt2930644editdlrm
os_dos.txt154950644editdlrm
os_haiku.txt85430644editdlrm
os_mac.txt68560644editdlrm
os_mint.txt3910644editdlrm
os_msdos.txt5230644editdlrm
os_os2.txt2990644editdlrm
os_qnx.txt40710644editdlrm
os_risc.txt3280644editdlrm
os_unix.txt26070644editdlrm
os_vms.txt337430644editdlrm
os_win32.txt149120644editdlrm
pattern.txt636530644editdlrm
pi_getscript.txt210770644editdlrm
pi_gzip.txt15470644editdlrm
pi_logipat.txt41960644editdlrm
pi_netrw.txt1817350644editdlrm
pi_paren.txt22740644editdlrm
pi_spec.txt41270644editdlrm
pi_tar.txt71910644editdlrm
pi_vimball.txt118590644editdlrm
pi_zip.txt77780644editdlrm
popup.txt403820644editdlrm
print.txt314450644editdlrm
quickfix.txt857010644editdlrm
quickref.txt730610644editdlrm
quotes.txt127480644editdlrm
README.Debian3240644editdlrm
recover.txt107270644editdlrm
remote.txt86260644editdlrm
repeat.txt465020644editdlrm
rileft.txt50630644editdlrm
russian.txt30240644editdlrm
scroll.txt143560644editdlrm
sign.txt268600644editdlrm
spell.txt642050644editdlrm
sponsor.txt67760644editdlrm
starting.txt745400644editdlrm
syntax.txt2375970644editdlrm
tabpage.txt172460644editdlrm
tags3910910644editdlrm
tags.vim-tiny19350644editdlrm
tagsrch.txt404750644editdlrm
term.txt556850644editdlrm
terminal.txt631690644editdlrm
testing.txt225070644editdlrm
textprop.txt204780644editdlrm
tips.txt213360644editdlrm
todo.txt3163580644editdlrm
uganda.txt130520644editdlrm
undo.txt178110644editdlrm
userfunc.txt206240644editdlrm
usr_01.txt70760644editdlrm
usr_02.txt242280644editdlrm
usr_03.txt239340644editdlrm
usr_04.txt191310644editdlrm
usr_05.txt279460644editdlrm
usr_06.txt106390644editdlrm
usr_07.txt159950644editdlrm
usr_08.txt193790644editdlrm
usr_09.txt115020644editdlrm
usr_10.txt292000644editdlrm
usr_11.txt130250644editdlrm
usr_12.txt134330644editdlrm
usr_20.txt137330644editdlrm
usr_21.txt184560644editdlrm
usr_22.txt149040644editdlrm
usr_23.txt127440644editdlrm
usr_24.txt208270644editdlrm
usr_25.txt191760644editdlrm
usr_26.txt82590644editdlrm
usr_27.txt177090644editdlrm
usr_28.txt160200644editdlrm
usr_29.txt202590644editdlrm
usr_30.txt226580644editdlrm
usr_31.txt103990644editdlrm
usr_32.txt53780644editdlrm
usr_40.txt235540644editdlrm
usr_41.txt652720644editdlrm
usr_42.txt138530644editdlrm
usr_43.txt74090644editdlrm
usr_44.txt289480644editdlrm
usr_45.txt176800644editdlrm
usr_50.txt45540644editdlrm
usr_51.txt255170644editdlrm
usr_52.txt134980644editdlrm
usr_90.txt167780644editdlrm
usr_toc.txt98860644editdlrm
various.txt324320644editdlrm
version4.txt139110644editdlrm
version5.txt3085290644editdlrm
version6.txt5769420644editdlrm
version7.txt6746980644editdlrm
version8.txt15998520644editdlrm
version9.txt16113250644editdlrm
vim9.txt917530644editdlrm
vim9class.txt410400644editdlrm
visual.txt226250644editdlrm
vi_diff.txt574040644editdlrm
windows.txt587060644editdlrm
workshop.txt3710644editdlrm
Edit: /usr/share/vim/vim91/doc/ft_context.txt (5161B)
*ft_context.txt* For Vim version 9.1. Last change: 2024 Jan 01 This is the documentation for the ConTeXt filetype plugin. NOTE: the plugin requires +vim9script. ============================================================================== CONTENTS *context.vim* *ft-context* 1. Introduction |ft-context-intro| 2. Commands |ft-context-commands| 3. Settings |ft-context-settings| 4. Mappings |ft-context-mappings| ============================================================================== *ft-context-intro* Introduction ~ ConTeXt, similarly to LaTeX, is a macro-based typesetting system built on TeX: > https://wiki.contextgarden.net https://wiki.contextgarden.net/Vim < The ConTeXt plugin provides syntax highlighting, completion and support for typesetting ConTeXt documents. The recommended way to typeset a document is to use |:ConTeXt|. This will invoke the `mtxrun` script that is found in `$PATH`. For more fine grained control over the command and its environment, `context.Typeset()` can be used directly (or `context#Typeset()` from legacy Vim script). For instance, if a version of ConTeXt is installed in `~/context`, you may define a function to use it similar to the following: > import autoload 'context.vim' def MyConTeXt() const env = {'PATH': printf("%s/context/tex/texmf--/bin:%s", $HOME, $PATH)} context.Typeset("%", env) enddef This code may go in `~/.vim/after/ftplugin/context.vim`. A mapping can then be defined to invoke the custom command: > nnoremap t MyConTeXt() < `context.Typeset()` accepts a third optional argument to specify a custom typesetting command. That must be a function that takes a path and returns the command as a List. For example: > def ConTeXtCustomCommand(path: string): list return ['mtxrun', '--script', 'context', '--nonstopmode', path] enddef context.ConTeXtTypeset("%", v:none, ConTeXtCustomCommand) < Large projects are often organized as a root document and various chapter files. When editing a chapter file, it is convenient to invoke |:ConTeXt| directly on it, rather than having to switch to the root file. A "magic line" can be added at the beginning of each chapter file, which specifies the relative path to the root file. For instance: > % !TEX root = ../MyRoot.tex < Vim searches for the magic line in the first ten lines of the current buffer: if it is found, the document specified by that line is typeset rather than the one in the current buffer. The root document does not have to be opened in Vim. To extend completion and syntax highlighting, you may generate supporting files using ConTeXt and add them to your configuration. If you configuration resides in `~/.vim`, you may use these commands: > mkdir -p ~/.vim/syntax/shared cd ~/.vim/syntax/shared mtxrun --script interface --vim < The last command will create the following syntax files: - `context-data-context.vim`; - `context-data-interfaces.vim`; - `context-data-metafun.vim`; - `context-data-tex.vim`. The same command can be used to update those syntax files. *ft-context-commands* Commands ~ *:ConTeXt* Start a background |job| to typeset the document in the current buffer. The command accepts an optional buffer's name, if you want to typeset a document that is in a different buffer. *:ConTeXtLog* Edit the log file corresponding to the source in the current buffer. *:ConTeXtJobsStatus* Echo the number of jobs currently running in the background. *:ConTeXtStopJobs* Stop all the ConTeXt jobs currently running in the background. *ft-context-settings* Settings ~ *'b:context_ignore_makefile'* *'g:context_ignore_makefile'* |:make| can be used to (synchronously) typeset a document. If a Makefile exists and this option is not set, standard `make` is used. If this option is set, `mtxrun` is invoked instead, even if a Makefile exists. > g:context_ignore_makefile = 0 < NOTE: before using |:make|, set the working directory of the buffer to the directory of the file to be typeset. *'g:context_extra_options'* A list of additional options to pass to `mtxrun`. > g:context_extra_options = [] < *'b:context_include'* *'g:context_include'* Dictionary of filetype/GROUP pairs for which syntax highlighting should be activated between \startGROUP and \stopGROUP. The default is to highlight XML between `\startXML` and `\stopXML`. > g:context_include = {'xml': 'XML'} NOTE: Lua and MetaPost are always highlighted within the respective blocks. *'g:no_context_maps'* When set, do not define any mappings. > g:no_context_maps = 0 < *ft-context-mappings* Mappings ~ tp "reflow TeX paragraph". i$ "inside inline math block". a$ "around inline math block". ]] [count] start of sections forward. [[ [count] start of sections backward. ][ [count] end sections forward. [] [count] end of sections backward. ]} [count] end of blocks (\stop..., \setup..., \define...) forward. [{ [count] begin of blocks (\start..., \setup..., \define...) backward. vim:tw=78:sw=4:ts=8:noet:ft=help:norl: