ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Custom parameters/options for t-vim
@ 2011-08-30 14:27 Andreas Schneider
  2011-08-29 21:35 ` Aditya Mahajan
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Schneider @ 2011-08-30 14:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I worked with t-vim a bit more and encountered a small problem with the 
way vim handles syntax definitions. Some of them have several modes that 
get activated by setting a variable first. For example the syntax "sh" 
(shell scripts) can be enhanced for bash, ksh, etc.

Example:
let g:is_bash=1
set syntax=sh

Now a line like "export foo=bar" is highlighted differently than when I 
would omit the "let g:is_bash=1".

Therefore I would propose another options to \setupvimtyping to specify 
custom options to be passed to vim. Preferably they should be passed at 
least before the "set syntax=..." line to make sure that this particular 
case -- i.e. switching syntax modes -- works well (which may be the only 
necessary case).

-- 
Best Regards,
Andreas
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-09-06  9:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-30 14:27 Custom parameters/options for t-vim Andreas Schneider
2011-08-29 21:35 ` Aditya Mahajan
2011-08-31  7:15   ` Andreas Schneider
2011-08-31 23:00     ` Aditya Mahajan
2011-09-03  6:58       ` Aditya Mahajan
2011-09-06  9:07         ` Andreas Schneider

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).