Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Syntax highlight `Gemfile`s #132

Closed
wants to merge 2 commits into from

2 participants

Dan Croak Greg Lazarev
Dan Croak
Admin

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
Dan Croak croaky Syntax highlight `Gemfile`s 2bec1f6
Dan Croak 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
Dan Croak
Admin

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

Greg Lazarev
Admin

Looks good. What does gf do?

Dan Croak
Admin

@gylaz It works like this:

  • From within Gemfile.
  • Cursor over a gem name.
  • gf
  • The bundled gem's source is opened.
Dan Croak croaky closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 9, 2013
  1. Dan Croak

    Syntax highlight `Gemfile`s

    croaky authored
  2. Dan Croak

    Use bundler.vim

    croaky authored
    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.
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +1 −0  vim/bundle/vim-bundler
  2. +1 −1  vim/bundle/vim-rspec
  3. +1 −0  vimrc
1  vim/bundle/vim-bundler
@@ -0,0 +1 @@
+Subproject commit e7695d96d44d41bd5835397dd4b6610c3d56c840
2  vim/bundle/vim-rspec
@@ -1 +1 @@
-Subproject commit 176e63f925806efd3a2fbfc746a33d4ee64a1a2d
+Subproject commit 14772544961b5df2d54eba618a160483f0f62dc7
1  vimrc
View
@@ -32,6 +32,7 @@ Bundle 'kien/ctrlp.vim'
Bundle 'nanki/treetop.vim'
Bundle 'thoughtbot/vim-rspec'
Bundle 'timcharper/textile.vim'
+Bundle 'tpope/vim-bundler'
Bundle 'tpope/vim-cucumber'
Bundle 'tpope/vim-endwise'
Bundle 'tpope/vim-fugitive'
Something went wrong with that request. Please try again.