DSL Tips and Tricks :: Vim tips



Quote (^thehatsrule^ @ Dec. 20 2007,21:46)
You have to escape the + with a \
The * wildcard stands for zero or more instances of a group.

EDIT: that link you posted explains that as well

I just wanted to make sure you read it!

Well, here it is:  

\1\@<=,\([a-z]\+\) ",abc" in "abc,abc"

Once again, you nailed it!  I just created 5,346 array variables.
Thanks, Hats.  (I'll dance at your wedding!)  :D

I was just playing with GVIM; this sure makes exploring vim's power more accessible.  Split with "explorer," convert to HTML, etc, etc.  This surely isn't Notepad!!
This thread has been dormant too long. Here are a couple vim plugins that other DSL users might find useful. I don't know if anyone's tried them or remarked on them before in the forums.

lua-support: This adds a separate menu to turn vim into a lua IDE. Included in the menu are sections for comments, conditional statements, regex options, run, etc. The run menu includes syntax check.
vim script site:
http://www.vim.org/scripts/script.php?script_id=1763
plugin homepage screenshots:
http://lug.fh-swf.de/vim/vim-lua/

bash-support: This does the same as the above but for BASH.
http://vim.sourceforge.net/scripts/script.php?script_id=365
shots: http://lug.fh-swf.de/vim/vim-bash/screenshots-en.html

There's also a perl version:
http://vim.sourceforge.net/scripts/script.php?script_id=556
...and C/C++:
http://vim.sourceforge.net/scripts/script.php?script_id=213

These aren't too terribly large, especially compared to the size of the full/normal install of vim 7.1-current.
Code Sample
% du -h --max-depth=1 | grep support
152K    ./bash-support
112K    ./lua-support


Here's my own screenshot with part of the lua menu opened:
http://lucky13linux.files.wordpress.com/2008/05/screen-lua-menu.png


original here.