Re: Metaprogramming, mixed languages, and Vim.

2006-10-26 Thread David S .
Hugh Sasse hgs at dmu.ac.uk writes:

 So, we run into a problem: how does one syntax highlight mixed
 language code?  

This works well for me, but needs delimters to indicate the appropriate syntax.

http://www.vim.org/tips/tip.php?tip_id=856

So in my Python code, for example, I might have:
...
#{{{sql
bar_sql = 
Select foo, baz 
From bar

#sql}}}

cur.execute(bar_sql)
...

Peace,
David S.




repeat movement

2006-04-29 Thread David S .
Is there a way to repeat the last cursor movement?  Dot (.) repeats last edit,
is there an analog for motion, so that, for example, if I press zj to move down
a fold I can just hit some other key to repeat that? 

I am that lazy.

Thanks,
David S.