11.10.06
Modifying Vim Syntax Highlighting
Added this to my .vimrc, to remove the annoying underlining of the ‘a’ html element.
hi def linkBlue ctermfg=DarkBlue
hi def link htmlLink linkBlue
11.08.06
Suppress irb output
Simply add “;nil” or “;0″ or anything other value you don’t mind seeing, to the end of the command.
>> Person.find(:all);nil
=> nil
02.12.06
Ruby on Rails on Ubuntu
I followed selected portions of this howto to install a fresh copy of Ubuntu on a box I administer. Then I tried to follow this howto to get Ruby on Rails; but I hit a snag while trying to install RubyGems. I did the following commands:
sudo ruby setup.rb config --prefix=/usr/local
sudo ruby setup.rb setup
sudo ruby setup.rb install
The solution to this was to export RUBYLIB=/usr/local/local/lib/site_ruby/1.8 which I found at this site.
02.10.06
Case-sensitivity in Vim search
Thanks to Eugene Kashida, I was informed that when searching in Vim you can force a case-sensity search by appending \C to your search; similarly, if appending \c will force a case-insensitive search. For example:
/FooBar\C will find “FooBar” but not “foobar”
/FooBar\c will find both “FooBar” and “foobar”