Ruby, Vim, and Windows
December 11th, 2009
2 comments
It is unbelievably easy to create a wicked setup, although I spent half a day googling to narrow it down to the exsentials:
Downloads
- Ruby with the One-click installer.
- Vim’s self-installing Windows executable (this comes with many customizations you read about online, and ruby support, included)
- snipMate, a plug-in that automatically expands common Ruby constructs (e.g. you type ‘cla<tab>,’ which becomes class…end with placeholders!)
- AutoComplPop (must have!!!), an autocomplete plugin very much like Xcode’s – start typing and a popup list of completion options appears. superTab, another plug-in that allows you to use tab to auto-complete Ruby code
- wombat, a great color scheme
Global configurations
Add the following settings to /path/to/vim/_vimrc.
note: the autocomplete menu colors, and vim’s default font are disgusting, hence the changes.
Ruby-specific Configurations
In the vimrc above, the following is added:
- the first line sets up superTabs to look in the right place for Ruby completions (I use AutoComplPop now, see above)
adds line numbers to several source code file types
changes the ridiculous 8-space tabs to 2
That’s it! Happy coding
Recent Comments