![](https://secure.gravatar.com/avatar/2c5e0aba13c800eca24d22bf68dbc6cb.jpg?s=120&d=mm&r=g)
I was trying to get the context compiler plugin for gvim working, but I think I may be misunderstanding something about the instructions. I keep getting a "compiler not found" error when I try to set the compiler so I must have done something wrong. I downloaded the texexec.vim plugin from http://www.vim.org/scripts/script.php?script_id=1925 and copied it to /usr/share/vim/vim70/compiler/texexec.vim I then opened a context file with gvim and typed ":compiler=texexec" and I get "E666: compiler not supported: =texexec" It seems like it must be a small mistake, but I'm at a loss to figure out what it is. Does anyone know what I did wrong? Thanks, Mike
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Thu, 7 May 2009, Michael Bynum wrote:
I was trying to get the context compiler plugin for gvim working, but I think I may be misunderstanding something about the instructions. I keep getting a "compiler not found" error when I try to set the compiler so I must have done something wrong.
I downloaded the texexec.vim plugin from http://www.vim.org/scripts/script.php?script_id=1925 and copied it to /usr/share/vim/vim70/compiler/texexec.vim I then opened a context file with gvim and typed ":compiler=texexec" and I get "E666: compiler not supported: =texexec"
Sorry, that is a typo in the instructions. You should type :compiler texexec (without the = sign) BTW, you might also be interested in syntax and indent files for ConTeXt http://github.com/adityam/vim-context/tree/master Aditya
![](https://secure.gravatar.com/avatar/2c5e0aba13c800eca24d22bf68dbc6cb.jpg?s=120&d=mm&r=g)
Thanks, that fixed my problem. I installed both of the syntax and
indent files. It wasn't immediately obvious to me what the indent
file does. Should it
autoindent something like this without me having to manually tab over?
\setuphead[subsection]
[number=no,
after={\blank[medium]},
before={\placefloats},
textcommand=\mysubsectionhead]
Mike
On Thu, May 7, 2009 at 11:23 AM, Aditya Mahajan
On Thu, 7 May 2009, Michael Bynum wrote:
I was trying to get the context compiler plugin for gvim working, but I think I may be misunderstanding something about the instructions. I keep getting a "compiler not found" error when I try to set the compiler so I must have done something wrong.
I downloaded the texexec.vim plugin from http://www.vim.org/scripts/script.php?script_id=1925 and copied it to /usr/share/vim/vim70/compiler/texexec.vim I then opened a context file with gvim and typed ":compiler=texexec" and I get "E666: compiler not supported: =texexec"
Sorry, that is a typo in the instructions. You should type
:compiler texexec
(without the = sign)
BTW, you might also be interested in syntax and indent files for ConTeXt http://github.com/adityam/vim-context/tree/master
Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Thu, 7 May 2009, Michael Bynum wrote:
Thanks, that fixed my problem. I installed both of the syntax and indent files. It wasn't immediately obvious to me what the indent file does.
indent files are for specifying filetype specific indent expressions. See :he indent-expression
Should it autoindent something like this without me having to manually tab over?
\setuphead[subsection] [number=no, after={\blank[medium]}, before={\placefloats}, textcommand=\mysubsectionhead]
Yes, it will indent it as \setuphead[subsection] [number=no, after={\blank[medium]}, before={\placefloats}, textcommand=\mysubsectionhead] It also does some simple indentation with \start ... \stop, itemize, and \NC. Aditya
![](https://secure.gravatar.com/avatar/2c5e0aba13c800eca24d22bf68dbc6cb.jpg?s=120&d=mm&r=g)
Hmm, then I must not have something set up correctly. If I type
"\setuphead[subsection] <cr>" I do not get the indenting as you are
showing. Is there someway to check to see if the context.vim
indenting file is being used?
Mike
On Thu, May 7, 2009 at 2:17 PM, Aditya Mahajan
On Thu, 7 May 2009, Michael Bynum wrote:
Thanks, that fixed my problem. I installed both of the syntax and indent files. It wasn't immediately obvious to me what the indent file does.
indent files are for specifying filetype specific indent expressions. See :he indent-expression
Should it autoindent something like this without me having to manually tab over?
\setuphead[subsection] [number=no, after={\blank[medium]}, before={\placefloats}, textcommand=\mysubsectionhead]
Yes, it will indent it as
\setuphead[subsection] [number=no, after={\blank[medium]}, before={\placefloats}, textcommand=\mysubsectionhead]
It also does some simple indentation with \start ... \stop, itemize, and \NC.
Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Thu, 7 May 2009, Michael Bynum wrote:
Hmm, then I must not have something set up correctly. If I type "\setuphead[subsection] <cr>" I do not get the indenting as you are showing.
The indenting only occurs when you type \setuphead[subsection] <cr> [
Is there someway to check to see if the context.vim indenting file is being used?
:verbose set indentexpr? It should return where indentexpr was last set Aditya
![](https://secure.gravatar.com/avatar/2c5e0aba13c800eca24d22bf68dbc6cb.jpg?s=120&d=mm&r=g)
I needed to add "filetype plugin indent on" to my .vimrc file. It
works now and is quite useful. Thanks!
Mike
On Thu, May 7, 2009 at 3:38 PM, Aditya Mahajan
On Thu, 7 May 2009, Michael Bynum wrote:
Hmm, then I must not have something set up correctly. If I type "\setuphead[subsection] <cr>" I do not get the indenting as you are showing.
The indenting only occurs when you type \setuphead[subsection] <cr> [
Is there someway to check to see if the context.vim indenting file is being used?
:verbose set indentexpr?
It should return where indentexpr was last set
Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (2)
-
Aditya Mahajan
-
Michael Bynum