Jabba Laci wrote:
Hi,

I always use 3 spaces for indenting. Now I started to learn Ruby, and
the style guide says Ruby developers prefer 2 spaces. I just wonder
how I could change the indenting just for *.rb files.

        Thanks,

              Laszlo


see
        :help 'tabstop'
        :help 'softtabstop'
        :help 'runtimepath'
        :help 'expandtab'
        :help 'after-directory'

Method I: add an after-plugin:

----- (Unix) start ~/.vim/after/ftplugin/ruby.vim
----- (Windows) start ~/vimfiles/after/ftplugin/ruby.vim
setlocal sts=2 et
----- end

Method II (in the vimrc)

autocommand FileType ruby setlocal sts=2 et



Best regards,
Tony.
--
A continuing flow of paper is sufficient to continue the flow of paper.
                -- Dyer

Reply via email to