List Info

Thread: indentation problem in e.g. array and hash definitions




indentation problem in e.g. array and hash definitions
user name
2008-01-02 02:37:19
Hi!

Here is the indentation glitch #3.
My example here is the indentation of array and hash
definitons.

I hope this helps.
Thanks
Dirk

Please see the following, which is also attached as a file:
#---------------------------------------#
# file automatically indented with gg=G #
#---------------------------------------#

#vimfiles
#  indent: $Id: ruby.vim,v 1.40 2007/03/20 13:54:25 dkearns
Exp $
#  syntax: $Id: ruby.vim,v 1.134 2007/05/06 17:55:04 tpope
Exp $
#7.1
#  indent: $Id: ruby.vim,v 1.40 2007/03/20 13:54:25 dkearns
Exp $
#  syntax: $Id: ruby.vim,v 1.134 2007/05/06 17:55:04 tpope
Exp $


# Nice indentation with '()':

Array.new(var_1,
          var_2,
          var_3 )


# but '[]' and '{}' are not recognized:

arr = [var_1,
  var_2,
  var_3 ]

hsh = {var_1 => 1,
  var_2 => 2,
  var_3 => 3 }



_______________________________________________
vim-ruby-devel mailing list
vim-ruby-develrubyforge.org

http://rubyforge.org/mailman/listinfo/vim-ruby-devel
  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )