[ILUG] vim's perl mode...

kevin lyda kevin+dated+1093271536.15a773 at ie.suberic.net
Wed Aug 18 15:32:06 IST 2004


so has anyone found a vim perl mode that does auto- indenting/deindenting
like vim's c mode?  for instance when i type this in vim's c mode:

    if (drink()) {<ret>tea();<ret>} else {<ret>coffee();<ret>}

i get:

    if (drink()) {
        tea();
    } else {
        coffee();
    }

however when i do that in perl i get:

    if (drink()) {
    tea();
    } else {
    coffee();
    }

of course perl's syntax is really, really, really complex compared to
c's.  so maybe it's just not possible.

kevin

-- 
american citizen?  register to vote: ~ florida voters - make sure you
https://register.votenet.com/LWV/    ~ haven't been struck from the
live overseas?  look here:           ~ voting lists.  check for your name
http://www.tellanamericantovote.com/ ~ here: http://tinyurl.com/2hbuj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.linux.ie/pipermail/ilug/attachments/20040818/96d655db/attachment.pgp


More information about the ILUG mailing list