26 May '12, 3am

Autotest and Vim integration – Tender Lovemaking

Yay! I got vim and autotest integration working. When I run autotest, if there is an error, I can have Vim read the errors from autotest and jump me to the right place. Here is a video of me using it: Please note that I’m not copying and pasting anything. In vim, I hit a command and Vim automatically picks up errors from autotest and jumps me to the line where the error occurred. You too can impress your friends with this trick! Here’s how: Make sure you have vim-ruby installed Use this as your .autotest file: require 'autotest/restart' Autotest.add_hook :initialize do |at| at.unit_diff = 'cat' end Autotest.add_hook :ran_command do |at| File.open('/tmp/autotest.txt', 'wb') { |f| f.write(at.results.join) } end Add this to your .vimrc: compiler rubyunit nmap <Leader>fd :cf /tmp/autotest.txt<cr> :compiler rubyunit<cr> Now when you get an error in autotest, just type “\fd” in ...

Full article: http://tenderlovemaking.com/2009/05/18/autotest-and-vim-i...

Tweets

@davenolan absolutely, that's on the list. is not too difficult either

@davenolan absolutely, that's on the list. is n...

tenderlovemaking.com 30 May '12, 10am

1 126930 hash_alloc:hash-alloc /Users/aaron/git/rails/activerecord/lib/active_record/base.rb:1528 1 126930 hash_alloc:hash...

@sikachu /me ใช้ absolute เวลา insert, relative เวลา normal ครับบ

@sikachu /me ใช้ absolute เวลา insert, relative...

jeffkreeftmeijer.com 26 May '12, 9pm

Since 7.3, Vim has a setting called relativenumber (you can set it up with :set relativenumber or :set rnu ), which is a l...

Future of SEO: Investment, Innovation & Integration

Future of SEO: Investment, Innovation & Integra...

searchenginewatch.com 24 May '12, 11am

BrightEdge raised $12.6 million in series C funding – It is looking at further integration across site, search, and social...

LKS: #CDNS @ #49DAC: #ARM booth 802 demo: strea...

cadence.com 25 May '12, 3pm

Cadence Exhibits Cadence Booth 1930 Connect with Cadence and our ecosystem partners at DAC for a variety of live presentat...