lytsing.org logo GNU - ruby/rails

Ubuntu 8.04
安装ruby1.9
RI文档在终端显示颜色显亮
vim + ruby
Ruby Snippets : Some abbreviations to use with Ruby
Ruby-macros.vim : macros for the ruby language
ruby-menu.vim : Adds a Ruby menu and some functions under that.

Ubuntu 8.04

The Programmer's Best Language

安装ruby1.9

sudo apt-get install ruby1.9 ruby1.9-dev ruby1.9-examples rdoc1.9 ri1.9

RI文档在终端显示颜色显亮

编辑 ~/.bashrc,添加:

# for ruby ri with funcy color
export RI="-T -f ansi"

vim + ruby

sudo apt-get install vim-ruby

Ruby Snippets : Some abbreviations to use with Ruby

http://www.vim.org/scripts/script.php?script_id=1966

Ruby-macros.vim : macros for the ruby language

http://www.vim.org/scripts/script.php?script_id=163

ruby-menu.vim : Adds a Ruby menu and some functions under that.

http://www.vim.org/scripts/script.php?script_id=188

ruby代码自动缩进的字符数为2个. ~/.vim/indent/ruby.vim set sw=2