Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 9ffa860d4c065fcf8b8c403e73cbf5f696d51dfa @tpope committed Aug 21, 2011
Showing with 466 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +61 −0 README.markdown
  3. +52 −0 doc/bundler.txt
  4. +352 −0 plugin/bundler.vim
@@ -0,0 +1 @@
+/doc/tags
@@ -0,0 +1,61 @@
+bundler.vim
+===========
+
+This is a lightweight bag of Vim goodies for
+[Bundler](http://gembundler.com), best accompanied by
+[rake.vim](https://github.com/tpope/vim-rake) and/or
+[rails.vim](https://github.com/tpope/vim-rails). Features:
+
+* `: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)!)
+
+Installation
+------------
+
+If you don't have a preferred installation method, I recommend
+installing [pathogen.vim](https://github.com/tpope/vim-pathogen), and
+then simply copy and paste:
+
+ cd ~/.vim/bundle
+ git clone git://github.com/tpope/vim-bundler.git
+
+Once help tags have been generated, you can view the manual with
+`:help bundler`.
+
+FAQ
+---
+
+> I installed the plugin and started Vim. Why don't any of the commands
+> exist?
+
+This plugin cares about the current file, not the current working
+directory. Edit a file that's covered by a `Gemfile`.
+
+> I opened a new tab. Why don't any of the commands exist?
+
+This plugin cares about the current file, not the current working
+directory. Edit a file that's covered by a `Gemfile`.
+
+Contributing
+------------
+
+See the contribution guidelines for
+[rails.vim](https://github.com/tpope/vim-rails#readme).
+
+Self-Promotion
+--------------
+
+Like bundler.vim? Follow the repository on
+[GitHub](https://github.com/tpope/vim-bundler). And if
+you're feeling especially charitable, follow [tpope](http://tpo.pe/) on
+[Twitter](http://twitter.com/tpope) and
+[GitHub](https://github.com/tpope).
+
+License
+-------
+
+Distributable under the same terms as Vim itself. See `:help license`.
@@ -0,0 +1,52 @@
+*bundler.vim* Support for Ruby's Bundler
+
+Author: Tim Pope <http://tpo.pe/>
+License: Same terms as Vim itself (see |license|)
+
+This plugin is only available if 'compatible' is not set.
+
+INTRODUCTION *bundler*
+
+This lightweight companion to rails.vim and rake.vim provides support for
+Bundler. In addition to the below commands, it also alters 'path' and 'tags'
+to include bundled gems. I recommend gem-ctags for generating tags for your
+gems.
+
+COMMANDS *bundler-commands*
+
+ *bundler-:Bundle*
+:Bundle[!] [args] Invoke `bundle` via |:make|.
+
+
+ *bundler-:Bopen*
+:Bopen[!] [gem] With no argument, edits the Gemfile. Otherwise,
+ effectively does a `bundle open` of a gem inside of
+ Vim, including an |:lcd| to the gem's root directory.
+ Add ! to discard the current buffer's changes.
+
+ *bundler-:Bedit*
+:Bedit[!] [gem] Like |:Bopen|, but don't |:lcd| afterwards.
+
+ *bundler-:Bsplit*
+:Bsplit[!] [gem] Like |:Bopen|, but horizontally split. Add ! to
+ suppress the |:lcd|.
+
+ *bundler-:Bvsplit*
+:Bvsplit[!] [gem] Like |:Bopen|, but vertically split. Add ! to
+ suppress the |:lcd|.
+
+ *bundler-:Btabedit*
+:Btabedit[!] [gem] Like |:Bopen|, but use a new tab. Add ! to
+ suppress the |:lcd|.
+
+ *bundler-:Bpedit*
+:Bpedit[!] [gem] Like |:Bopen|, but use a preview window. Add ! to
+ suppress the |:lcd|.
+
+ABOUT *bundler-about*
+
+Grab the latest version or report a bug on GitHub:
+
+http://github.com/tpope/vim-bundler
+
+ vim:tw=78:et:ft=help:norl:
Oops, something went wrong.

0 comments on commit 9ffa860

Please sign in to comment.