[prev in list] [next in list] [prev in thread] [next in thread]
List: vim
Subject: RE: "#comment"
From: Jeff Walker <jwalker () matchlogic ! com>
Date: 2001-06-28 22:08:40
[Download RAW message or body]
I have this:
autocmd FileType perl set cindent comments=:# cinkeys-=0#
in my .vimrc.
First one turns cindent on (usually close enough for me on vim5.x)
Second set the comments to "#"
Thrid actually does what you as for: doesn't reindent to column zero when
you hit "#"
HTH
--
Jeff Walker MatchLogic, Inc.
jwalker@matchlogic.com 7233 Church Ranch Blvd.
Voice 1 (303) 222-2105 Westminster, CO 80021
Fax 1 (303) 222-2001 www.matchlogic.com
-----Original Message-----
From: Florentin Ionescu [mailto:florentin_ionescu@yahoo.com]
Sent: Thursday, June 28, 2001 3:55 PM
To: vim@vim.org
Subject: "#comment"
Hello ,
Which is please the exact setting that would allow to
a perl_language comment, ie #somethig, to be indented
"normal", that is _not_ like
C/C++_preprocessor_directive(that is from column 0)?
My understanding, from Ouline/Vim book is that this
should work, but it does not for me :
set filetype=on;
autocmd FileType * set formatoptions=tcql
\ nocindent comments&
autocmd FileType c,cpp, CPP, C, set
formatoptions=croql
\cindent
comments=sr:/*,mb:*,ex:*/,://
Thank you for participation.
Florentin.
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic