Skip to content

Syntax highlight `Gemfile`s #132

Closed
wants to merge 2 commits into from

2 participants

@croaky
thoughtbot, inc. member
croaky commented Apr 9, 2013

I took the simple approach but an alternative we may want to consider
might be https://github.com/tpope/vim-bundler. Interested in opinions in
the comments.

croaky added some commits Apr 8, 2013
@croaky croaky Syntax highlight `Gemfile`s 2bec1f6
@croaky croaky Use bundler.vim
Includes features such as:

* `:Bundle`, which wraps `bundle`.
* An internalized version of `bundle open`: `:Bopen` (and `:Bsplit`,
  `:Btabedit`, etc.).
* `'path'` and `'tags'` are automatically altered to include all gems
  from your bundle.  (Generate those tags with
  [gem-ctags](https://github.com/tpope/gem-ctags)!)
* Highlight Bundler keywords in `Gemfile`.
* Support for `gf` in `Gemfile.lock`, plus syntax highlighting that
  distinguishes between installed and missing gems.
c1d4c5a
@croaky
thoughtbot, inc. member
croaky commented Apr 9, 2013

Just tried tpope/vim-bundler. The gf feature from within Gemfile and :Bopen command are awesome.

@gylaz
thoughtbot, inc. member
gylaz commented Apr 9, 2013

Looks good. What does gf do?

@croaky
thoughtbot, inc. member
croaky commented Apr 9, 2013

@gylaz It works like this:

  • From within Gemfile.
  • Cursor over a gem name.
  • gf
  • The bundled gem's source is opened.
@croaky croaky closed this Apr 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.