MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Syntax for editing minivend files with vim



Quoting Dennis Nichols (nichols@tradingconnections.com):
> 
> Greetings - I'm probably some type of dinosaur, but I use a version of vi
> called vim (www.vim.org) to edit almost everything. This includes all my
> html files with embedded minivend commands. Recent versions of vim can do
> syntax highlighting based on syntax files for each language. There are
> syntax files for html and for php3, for example, plus about 150 other ones.
> 
> Has anybody on this list worked on a syntax file for minivend? I don't like
> re-inventing wheels.
> 

Not that I know of; I am also a vim(1) user but don't typically use
syntax coloring. The HTML definition works pretty well; that modified
to recognize MV tags would be good.

I had thought of doing a tag macro set something like:

iabbr [if [if BASE TERM OP COMPARE]<CR>[elsif BASE TERM OP COMPARE]<CR>[/elsif]<CR>[else]<CR>[/else]<CR>[/if]<ESC>?BASE<CR>n

But I can't get VIM to take it; it errors out on "Invalid argument". (I did indeed
read the docs and get the ^V^V^M setup right.)

-- 
Mike Heins                          http://www.minivend.com/  ___ 
                                    Internet Robotics        |_ _|____
Clothes make the man.  Naked        131 Willow Lane, Floor 2  | ||  _ \
people have little or no            Oxford, OH  45056         | || |_) |
influence on society.               <mikeh@minivend.com>     |___|  _ <
 -- Mark Twain                      513.523.7621 FAX 7501        |_| \_\


Search for: Match: Format: Sort by: