plperl syntax highlighting for vi

Started by Geoffreyover 18 years ago7 messagesgeneral
Jump to latest
#1Geoffrey
lists@serioustechnology.com

Has anyone taken a stab at adding plperl syntax highlighting for vi?

--
Until later, Geoffrey

Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
- Benjamin Franklin

#2Jim Nasby
Jim.Nasby@BlueTreble.com
In reply to: Geoffrey (#1)
Re: plperl syntax highlighting for vi

On Jul 30, 2007, at 3:44 PM, Geoffrey wrote:

Has anyone taken a stab at adding plperl syntax highlighting for vi?

Hrm, not likely. David Fetter might be able to point you at something.

If you come up with something please post it on pgFoundry so that
others can find it! :)
--
Decibel!, aka Jim Nasby decibel@decibel.org
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

#3David Fetter
david@fetter.org
In reply to: Jim Nasby (#2)
Re: plperl syntax highlighting for vi

On Mon, Jul 30, 2007 at 07:58:14PM -0500, Decibel! wrote:

On Jul 30, 2007, at 3:44 PM, Geoffrey wrote:

Has anyone taken a stab at adding plperl syntax highlighting for
vi?

Hrm, not likely. David Fetter might be able to point you at
something.

If you come up with something please post it on pgFoundry so that
others can find it! :)

I'm flattered, but I haven't seen anything like that. I suppose vim's
extensibility might be able to help out. :)

Cheers,
D (there's more than one way to edit it)
--
David Fetter <david@fetter.org> http://fetter.org/
phone: +1 415 235 3778 AIM: dfetter666
Skype: davidfetter

Remember to vote!
Consider donating to PostgreSQL: http://www.postgresql.org/about/donate

#4Bruce Momjian
bruce@momjian.us
In reply to: David Fetter (#3)
Re: plperl syntax highlighting for vi

David Fetter wrote:

On Mon, Jul 30, 2007 at 07:58:14PM -0500, Decibel! wrote:

On Jul 30, 2007, at 3:44 PM, Geoffrey wrote:

Has anyone taken a stab at adding plperl syntax highlighting for
vi?

Hrm, not likely. David Fetter might be able to point you at
something.

If you come up with something please post it on pgFoundry so that
others can find it! :)

I'm flattered, but I haven't seen anything like that. I suppose vim's
extensibility might be able to help out. :)

Here is a vim version:

http://www.gunduz.org/postgresql/pgsql.vim

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#5David Fetter
david@fetter.org
In reply to: Bruce Momjian (#4)
Re: plperl syntax highlighting for vi

On Tue, Jul 31, 2007 at 01:19:06PM -0400, Bruce Momjian wrote:

David Fetter wrote:

On Mon, Jul 30, 2007 at 07:58:14PM -0500, Decibel! wrote:

On Jul 30, 2007, at 3:44 PM, Geoffrey wrote:

Has anyone taken a stab at adding plperl syntax highlighting for
vi?

Hrm, not likely. David Fetter might be able to point you at
something.

If you come up with something please post it on pgFoundry so that
others can find it! :)

I'm flattered, but I haven't seen anything like that. I suppose vim's
extensibility might be able to help out. :)

Here is a vim version:

http://www.gunduz.org/postgresql/pgsql.vim

That's great for PL/PgSQL. Maybe there's a way to do it for PL/Perl,
too :)

Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
phone: +1 415 235 3778 AIM: dfetter666
Skype: davidfetter

Remember to vote!
Consider donating to PostgreSQL: http://www.postgresql.org/about/donate

#6Richard Broersma Jr
rabroersma@yahoo.com
In reply to: David Fetter (#5)
Re: plperl syntax highlighting for vi

http://www.gunduz.org/postgresql/pgsql.vim

That's great for PL/PgSQL. Maybe there's a way to do it for PL/Perl,
too :)

Can anyone point me to a link that shows which file vim conf file need to be configured and how to
configure it to use this above .vim file?

TIA,

Regards,
Richard Broersma Jr.

#7Jim Nasby
Jim.Nasby@BlueTreble.com
In reply to: Richard Broersma Jr (#6)
Re: plperl syntax highlighting for vi

On Tue, Jul 31, 2007 at 02:59:41PM -0700, Richard Broersma Jr wrote:

http://www.gunduz.org/postgresql/pgsql.vim

That's great for PL/PgSQL. Maybe there's a way to do it for PL/Perl,
too :)

Can anyone point me to a link that shows which file vim conf file need to be configured and how to
configure it to use this above .vim file?

Best way to do it is to have an auto command that recognizes a .pgsql
file and loads that .vim file. You could also put it in
/usr/local/vim/syntax and it'd probably work.
--
Decibel!, aka Jim Nasby decibel@decibel.org
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)