[ANN] Vim/Ruby Configuration Files, 2004.09.20

G

Gavin Sinclair

Hi all,

Many Vim users will be aware of this RubyForge project:

http://vim-ruby.rubyforge.org/

It contains several configuration files that make Vim work better with
Ruby. The files in this release represent a significant improvement
over the ones in the Vim 6.3 release.

It's now easier than before to keep up to date with this project, so
long as you have RubyGems 0.8+ installed:

$ gem install -r vim-ruby
$ (sudo) vim-ruby-install.rb (--help)

A TGZ is also available. Installation instructions at the above link.

This installation mechanism is brand new. Please tread carefully,
especially with root access, and report any problems.
Ultra-conservative people should install the configuration files
manually :)

Cheers,
Gavin
 
E

Eric Hodel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

Many Vim users will be aware of this RubyForge project:

http://vim-ruby.rubyforge.org/

It contains several configuration files that make Vim work better with
Ruby. The files in this release represent a significant improvement
over the ones in the Vim 6.3 release.

Last night I was wondering aloud on IRC why vim always unindented
comments when I typed them on a blank line. I thought I'd fixed the
problem at work, but couldn't remember how. Another guy had the same
problem. After poking around a bit, I discovered that the problem was
that I had smartindent turned on in my .vimrc. You really want
nosmartindent when editing ruby files in vim.

- --
Eric Hodel - (e-mail address removed) - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFBTcoHMypVHHlsnwQRAtY2AJ9A8P6KDJ3T1SYaBAzh19Gl7LxjiwCfTmT6
Kmt/xFMVLNvmY/5Uu7zXC/g=
=Le9b
-----END PGP SIGNATURE-----
 
G

Gavin Sinclair

On Sep 19, 2004, at 9:29 AM, Gavin Sinclair wrote:
Last night I was wondering aloud on IRC why vim always unindented
comments when I typed them on a blank line. I thought I'd fixed the
problem at work, but couldn't remember how. Another guy had the same
problem. After poking around a bit, I discovered that the problem was
that I had smartindent turned on in my .vimrc. You really want
nosmartindent when editing ruby files in vim.

I guess that's something I can add to ftplugin/ruby.vim then:

set <buffer> nosmartindent

(Or whatever the correct syntax is.)

Gavin

P.S. I've been wondering that too!
 
N

Nikolai Weibull

* Gavin Sinclair said:
I guess that's something I can add to ftplugin/ruby.vim then:

Actually, I was looking at the wrong indent/ruby.vim. Please add
setlocal nosmartindent in indent/ruby.vim so that it is turned off
correctly. Sorry for shouting,
nikolai
 
N

Nikolai Weibull

* Gavin Sinclair said:
I guess that's something I can add to ftplugin/ruby.vim then:

set <buffer> nosmartindent

Eh eh eh, that's already set by indent/ruby.vim...

18:setlocal nosmartindent

So please don't put stuff pertaining to indentation in ftplugin.
There has to be something else going on. Either you're resetting it to
smartindent (why, oh why would you) or you're not loading the indent
files (filetype indent on) or something completely different.

In the old days doing =<motion> over a comment wouldn't reindent the
comment, as this would break indentation for other lines. This
non-feature has since been abolished.
nikolai
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top