Thursday, March 01, 2007

_vimrc for Ruby

In the past I've used gvim for Ruby coding. It's been pretty good, especially with the new tabbed editing and omni complete (bit like intellisense in Visual Studio) introduced in vim 7. However, when I downloaded vim at work, I was missing the secret sauce - a good vimrc. Here's my usual vimrc for ruby:
set nocompatible
behave xterm
set selectmode=mouse
set nu
set tabstop=2
set shiftwidth=2
set softtabstop=2
set ai
set columns=100
set lines=70
set guifont=Courier:h10
set expandtab
set smarttab
let g:rubycomplete_rails = 1
Among other things, it makes the default window size bigger, uses a prettier font, sets up auto indenting ruby style, and turns on omni-complete.

By the way, on windows, assuming a default install, vimrc is to be found here:
C:\Program Files\Vim\_vimrc

17 comments:

alvin said...

can you explain the _vimrc line by line for me please

my email is alvin_garlic@yahoo.com.sg

Anonymous said...

Why not put a comment after each line to explain their function? (I recognize that several are obvious; however, more are not.)

Eric, Mandy, Hayden and Shelby said...

thx man, this is a nice start when u just need something to get going w/ the tool.

Alberta Directory said...

Thanks for posting, definitely going to subscribe! See you on my reader. Feel free to check out my site canada
when you got time.

Ontario Directory said...

Hello, What enticed you to post this article. It was extremely interesting, especially since I was searching for info on this subject last Thursday. I would love some feedback on my site travel tourist guide when you got time.

Anonymous said...

levitra wirkung
rezeptfrei viagra
rezeptfrei viagra
como comprar cialis
cialis bestellen
cialis wirkung
cialis wirkung
viagra bestellen

Anonymous said...

vermox rezeptfrei
viagra soft apotheke rezeptfrei
accutane bestellen rezeptfrei
strattera rezeptfrei
vermox bestellen rezeptfrei
cialis super active bestellen
viagra ohne rezept kaufen
kamagra oral jelly kaufen
tamiflu rezeptfrei
vermox ohne rezept kaufen
cialis ohne rezept
amoxil bestellen
kamagra oral jelly ohne rezept bestellen
viagra super active bestellen rezeptfrei

Anonymous said...

vendita lovegra italia
kamagra soft vente en ligne
pilule france
prix intagra
vendita viagra
levitra rezeptfrei kaufen
lasix acheter
lovegra bestellen rezeptfrei
levitra en ligne
viagra soft france
acheter pharmacie france
vendita cialis
cialis vendita
kamagra online italia

Anonymous said...

Vendita cialis super active plus Senza Ricetta
cialis super active plus Online Rezeptfrei
Acheter du levitra en Pharmacie
Comprar cipro Farmacia
Comprar minocin Internet
Comprare cytotec Italia
Acheter du cialis super active plus en Pharmacie
Comprare accutane Farmacia
cialis Rezeptfrei Kaufen
kamagra oral jelly Rezeptfrei Bestellen

Larah said...

Very nice article!
online jobs

Unknown said...

All those sequels will be fed to Starz as part of the new distribution deal. Other Weinstein Co. films coming to Starz include critically acclaimed "The King's Speech," and "Blue Valentine." nice and cheap ugg boots is on display right now at Harrods ugg clearance in London, but once released, will there be a market for it? The new green luxury car gives the environmentally conscious executive cheap uggs clearance the option of powering the CT 200H by either electricity orjordan basketball shoes by regular petrol. Lexusugg women is banking on the belief that there is a growing demand for a greenJordan Fusions. vehicle in the luxury car market.

betting bonuses said...

I impressed greatly that the way you have written such great article. I got many reference about this topic but your one is wonderful. When I started to read article I was thinking about the way you present such great topic. By the way could you please post more article on such topic ? I really appreciate it. bet365 | online bookmakers | online betting

wow items said...

This is so exciting! Can't wait for the Special Friends edition.Thanks for the links big bro!I just want to say that you're doing a

great job, keep it up!
WOW Gold
buy tera gold
WOW Items

Cheap WOW Items
Tera Gold
WOW Gear

Buy WOW Items
Tera Gold
WOW Items Gold

Tera Gold
Buy WOW Gold
Cheap WOW Gold

buy eden gold
eden gold
RS Gold

Cheap tera gold
Cheap Tera Gold
RS Gold

RS Gold
Tera Power Leveling
Buy RS Gold

cheap eden gold
Tera Account
Tera Items

Eden Eternal Review
Eden Eternal Gold
Buy tera gold

herbal viagra said...

Thanks for the nice blog. It was very useful for me. Keep sharing such ideas in the future as well. This was actually what I was looking for, and I am glad to came here! Thanks for sharing the such information with us.

Anonymous said...

In the previous I've utilised gvim for Ruby coding.Cheap Runescape Gold it is been relatively good, specifically using the newest tabbed modifying and omni comprehensive (bit like intellisense in noticeable Studio) introduced in vim 7. However, when I downloaded vim at work, i experienced been missing the beauty Cheap RS Goldequation sauce - an excellent vimrc. here is my typical vimrc for ruby:

Unknown said...

Nice post! Can’t wait for the next one. Keep stuff like this coming. Nice Post keep it up.

Asus - N55SL-DS71 15.6" LED Notebook - Intel Core i7 i7-2670QM 2.20 GHz - Black

Asus - 11.6"ZENBOOK Ultrabook 4 GB Memory and 128 GB Solid State Drive - Aluminum Silver

Asus - 13.3" Laptop - 4GB Memory - 128GB Solid State Drive - Hot Pink

Asus - 11.6" Laptop - 4GB Memory - 128GB Solid State Drive - Radiant Silver

Asus - 15.6" Notebook 8 GB Memory - 500 GB Hard Drive - Black

Unknown said...

lunette oakley
marc jacobs
nike trainers uk
weitzman shoes
cheap wedding dresses
adidas zx flux
balance shoes
nike roshe
ugg boots
hollister uk
2018.1.4chenlixiang