Changes

Jump to navigation Jump to search
1,225 bytes added ,  01:26, 3 August 2005
added link to Nikolai's context.vim, some comments, minor changes
This page will be about editing ConTeXt source in (g)vim.
== Useful context.vim == Nikolai Weibull was the first one who wrote context.vim files and submitted them to the official vim cvs repository.They will be part of the official Vim 7. However, as it is still in alpha state at the time of writing, you probably don't have those files in Vim 6. You can download the files at:* [http://cvs.sourceforge.net/viewcvs.py/vim/vim7/runtime/syntax/context.vim runtime/syntax/context.vim] - syntax highlighting* [http://cvs.sourceforge.net/viewcvs.py/vim/vim7/runtime/ftplugin/context.vim runtime/ftplugin/context.vim] - filetype specific behaviour (like repeating comments at the beginning of line) If you don't use LaTeX (if your <code>*.tex</code> files are mostly for ConTeXt), you can add the following lines to filetype.vim: " ConTeXt augroup filetypedetect au! BufRead,BufNewFile *.tex setfiletype context augroup ENDso the next time you open a <code>*.tex</code> file in vim, context.vim will be loaded instead of tex.vim. It's mostly up to you which syntax highlighting scheme you prefer. <code>context.vim</code> is a lighter version than <code>tex.vim</code>. It knows some ConTeXt details that are not implemented in <code>tex.vim</code>, while math and some other TeX features are not supported yet in <context>context.vim</context>. If you feel that something is missing in the file, please contribute! === TODO === * extract data from texweb and create syntax highlighting definitions for ConTeXt* add metafun macros (from metafun manual)* enable metapost/metafun and XML inside ConTeXt == Other useful vim plugins ==
* autocomplete: http://vim.sourceforge.net/scripts/script.php?script_id=182, almost undocumented, but life-saving
* spell-checker: http://www.vim.org/scripts/script.php?script_id=499, should work automatically once the ConTeXt support is there* but native spell-checking support should will be included in Vim 7
== LaTeX plugins ==
http://vim-latex.sourceforge.net/
== TODO ==
 
* extract data from texweb and create syntax highlighting definitions for ConTeXt
* add metafun macros (from metafun manual)
* should be easy: clone [http://www.vim.org/scripts/script.php?script_id=403 this] script to enable metapost/metafun and XML inside ConTeXt
=== MetaPost extension ===

Navigation menu