On Fri, Jul 19, 2002 at 10:51:20AM +1000, mdevin wrote:
> Can people make some suggestions on vimrc entries for programming,
> syntax highlighting, automatic indenting etc. My current entries work
> OK for C, C++, Java etc. but not perl. I guess I only need to add the
> .pl and .cgi extensions to the autocommand sections to get this to work.
> However, I am interested in what others use. Particularly, there is
> some autodetection ability I think, so that if I don't give the files
> .pl or .cgi extensions, it still performs OK.
>
> I have the following entries in my vimrc for programming stuff:
> [ snip ]
>
> Suggestions welcome.
How you tried how things work without the autocommands? I only have
indent and tabstop settings and such in my .vimrc, and gvim recognizes
perl with and without the .pl extension out-of-the-box (I would guess it
uses the #! line for detection). I just tested with vim, and putting
syntax on
in my .vimrc made that work as well.
--
Note that I use Debian version 3.0
Linux mus 2.4.17mvz5 #1 Sun Jun 2 15:16:44 CEST 2002 i686 unknown
Matijs van Zuijlen
... designed to fill holes or cracks of not more than two cubic vims.
-- Robert Sheckley, Untouched by Human Hands
Attachment:
pgphNWJVjQ4ke.pgp
Description: PGP signature