Changes

Jump to navigation Jump to search
1,202 bytes added ,  13:01, 30 October 2016
no edit summary
You may use the following commands to quickly jump to different parts of your document:
* <tt>[[</tt>: jump to the previous start of the previous subject/section/chapter/part/component/product;* <tt>]]</tt>: jump to the next start of the next subject/section/chapter/part/component/product;
* <tt>[]</tt>: jump to the previous end of section, chapter, etc…;
* <tt>][</tt>: jump to the next end of section, chapter, etc…;
* <tt>]}</tt>: jump to the next <tt>\stop…</tt> or <tt>/setup…</tt> command;
Each of the above accepts an optional count. For example, if you may type <tt>3[{</tt> you will to jump
three <tt>\start…</tt> commands before.
putting the cursor over <tt>my_component</tt> and pressing <tt>gf</tt> will open <tt>my_component.tex</tt>.
Vim searches for files in the locations specified by the <tt>path</tt> option (this is a Vim feature). So, you You maylikelyhave to set change the value of <tt>path</tt> for the above to work. === Integration with MetaPost === Vim offers excellent support for editing METAFONT and MetaPost documents (<tt>mf</tt> and <tt>mp</tt> filetypes).Most of the features of such filetypes work also inside ConTeXt's MetaPost environments,such as <tt>\startMPpage… \stopMPpage</tt>.In particular, Vim automatically highlights and indents MetaPost and MetaFun code inside a ConTeXt document.Besides, when you are inside a MetaPost environment, you may press CTRL-X followed by CTRL-Oto complete a MetaPost/MetaFun keyword. This works out of the box: no configuration is required. === Integration with other languages === Lua syntax highlighting is used inside <tt>\directlua{}</tt>, <tt>\ctxlua{}</tt> commands,and inside <tt>\startluacode… \stopluacode</tt>. XML highlighting is used inside <tt>\startXML… \stopXML</tt> You may embed other filetypes. Just define <tt>g:context_include</tt> (or <tt>b:context_include</tt> forbuffer-specific settings). For example, if you want to highlight C++ code inside, say, <tt>\startCPP… \stopCPP</tt>,define: let g:context_include = { 'cpp' : 'CPP' }The key is the name of the filetype and the corresponding value if name of the command.
134

edits

Navigation menu