Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Today I Learned Simultaneously opening Ruby gem source files in Vim tabs

Say you're working on a Ruby Gem structured like:

Code

|-- bin
    |   `-- sample_gem
    `-- lib
        |-- sample_gem
        |   |-- bar.rb
        |   |-- baz.rb
        |   |-- biz.rb
        |   |-- foo.rb
        |   `-- version.rb
        `-- sample_gem.rb

Use this to open the full set of source files in Vim tabs:

Code

vim -p bin/sample_gem lib/**/*.rb