From: Michael Brailsford Date: 2003-01-22T18:09:16+09:00 Subject: Re: VIM module --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Is anyone using the VIM module to write scripts inside vim? I can't > find documentation about that module, does anyone know where could I look? I use ruby to script vim whenever I get the chance. I have two such scripts posted at vim.sf.net. One will parse C/C++ header files (only C++ is 'supported', but it works for most what I have seen in C) and generate highlighting for your classes, structs and typedefs. The other is pretty new and is under development, but you can play with it if you want. It generates C++ code templates. Right now it only works for creating a .cpp file from whatever exists in the corresponding .h file. I plan to add to it, so that it will update one from the other. Since I *hate* it when my header and cpp files get out of sync. Anyway here are the links to those scripts. The Highlighter: http://vim.sourceforge.net/script.php?script_id=274 The template generator: http://vim.sourceforge.net/script.php?script_id=493 I find that what I usually do is write a ruby script that runs from the command line then, I make a vimscript function that calls that script. I use ruby in vim for everything I can, wait, I use ruby for everything I can. :) I find that ruby's text processing is far simpler than is vimscript's. Not to mention, ruby is a lot more capable language than vimscript. -- Michael GnuPG Fingerprint: 4C56 7C23 8BD9 8B39 C4D4 B8F3 42FB 3634 31B5 E963 --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+LmYiQvs2NDG16WMRAoi2AJ9AgevnLf5O0FGjCJp7vuuBy2CsbwCfbcGh EfzGaXPy05rru+azQ2IyVSM= =lGGz -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--