Changes

Jump to navigation Jump to search
1,183 bytes added ,  17:36, 3 December 2005
some instructions on using latex-suite (written by Thomas on the "Text editor" discussion page) were moved here
* spell-checker: http://www.vim.org/scripts/script.php?script_id=499, but native spell-checking support will be included in Vim 7
== using latex-suite ==
 
[http://vim-latex.sourceforge.net/ latex-suite] currently doesn't support ConTeXt, but if you use it, here's what you have to do to compile ConTeXt documents:
 
1. After downloading and installing latex-suite, locate the file "texrc" (usually located in <code>~/.vim/ftplugin/latex-suite</code>). Copy this file to <code>~/.vim/ftplugin/tex/texrc</code>
 
2. Open this copy in your favorite editor (vim comes to mind...)
 
3. After line 80 in this file, there is a series of "Compiler rules." Just add this line to the section:
 
TexLet g:Tex_CompileRule_cont = 'texexec --pdf --nonstopmode $*'
 
This will add compilation for ConTeXT. In order to use it:
 
4. When you're in vim normal mode, run this command:
 
TGTarget cont [that's "colon TGTarger cont"]
 
5. Edit your TeX-files, save the changes; when you want to compile, switch to normal mode and just type <code>\ll</code> (that's '' 'backslash el el' '')
 
Voila, compilation should start. You'll have to specify this compiler target every timeI you open a TeX-file in Vim. If you want to make this the default compiler, you should have this line in your texrc:
 
TexLet g:Tex_DefaultTargetFormat = 'cont'
== Powerful key mappings ==
=== MetaPost extension ===
Should highlight the syntax between <code>btex/verbatimtex</code> ... <code>etex</code> as TeX.

Navigation menu