29 Dec '16, 3pm

Write a Vim Plugin with TDD Write a Vim plugin with confidence using TDD.

My colleague Chris Toomey and I are writing a Vim plugin called vim-spec-runner that runs RSpec and JavaScript tests. We’re test-driving it and learned a lot. Vimrunner We’re using the excellent vimrunner Ruby gem. It provides a Ruby interface to run arbitrary commands in Vim by hooking into Vim’s client-server architecture . If Vim was compiled with +clientserver , you can launch a Vim process that acts as a command server, with a client that sends commands to it. Vimrunner launches a Vim server and then sends your commands to it. We discovered that terminal Vim doesn’t work with vimrunner, but MacVim works perfectly. Vimrunner will pick up MacVim if it’s installed, so all you have to do is brew install macvim . If you’re using Linux/BSD, it might work out of the box, but we haven’t tried it. Here’s how to use Vimrunner to sort a file: VimRunner.start do |vim| vim.edit "f...

Full article: https://robots.thoughtbot.com/write-a-vim-plugin-with-tdd

Tweets

#Learn how to get started with #TDD!

#Learn how to get started with #TDD!

allaboutcircuits.com 01 Jan '17, 4am

As an exercise, consider that there is another command that allows you to set the volume level. Maybe a "v" followed by a ...

Delighted to see this write up for #MayfieldPas...

passivhaustrust.org.uk 28 Dec '16, 9am

Wall: Factory-built timber frame with 18mm Siberian Grade A Larc7 hit and miss cladding externally on 50x50mm battens on P...

buoys (0.6.0): A Ruby on Rails breadcrumbs plugin.

rubygems.org 31 Dec '16, 4pm

RubyGems.org is the Ruby community’s gem hosting service. Instantly publish your gems and then install them . Use the API ...

embulk-filter-base64 (0.1.1): An Embulk filter ...

rubygems.org 01 Jan '17, 4am

RubyGems.org is the Ruby community’s gem hosting service. Instantly publish your gems and then install them . Use the API ...

Cadillac CT6 Plug-In Hybrid Goes on Sale in China

Cadillac CT6 Plug-In Hybrid Goes on Sale in China

electriccarsreport.com 30 Dec '16, 3pm

SAIC-GM today officially launched the newest member of the Cadillac CT6 American luxury sedan family – the CT6 Plug-In Hyb...

fluent-plugin-azure-loganalytics (0.1.1): Azure...

rubygems.org 29 Dec '16, 1am

RubyGems.org is the Ruby community’s gem hosting service. Instantly publish your gems and then install them . Use the API ...

New Job Alert: Ruby Sketchup plugin by szymszte...

freelancer.com 04 Jan '17, 5pm

I need experienced Ruby developer to create Sketchup plugin for me, Given is a ZIP containing a JSON that describes a comp...