Indenting here documents (was Re: [ANN] Vim/Ruby Configuration Files, 2005.10.05)

Doug Kearns dougkearns at gmail.com
Wed Oct 12 06:01:07 EDT 2005


On Tue, Oct 11, 2005 at 11:26:28PM +0900, Nikolai Weibull wrote:

<snip> 

> Huh?  The indentation doesn’t indent multiline strings, so if you have
> 
>   print <<EOF
>     "Blah"
> EOF
> 
> it should leave everything were you put it.

It doesn't seem to:


if true
print <<EOF
"Blah"
EOF
end


and


if true
	print <<EOF
	"Blah"
EOF
end


both give


if true
	print <<EOF
	"Blah"
	EOF
end


<snip>

Regards,
Doug


More information about the vim-ruby-devel mailing list