Skip to content

dougireton/mirror_pond

Repository files navigation

Mirror Pond

An opinionated Vim distribution for Ruby and Chef development. Mirror Pond tries to adhere closely to the spirit and "grammar" of Vim, while extending it to better support Ruby and Chef development through judicious use of plugins.

Name

Mirror Pond is named after my favorite beer - Deschutes Mirror Pond Pale Ale.

It seemed appropriate to combine two of my favorite things - beer and Vim.

Features

Chef

  1. gf on any include_recipe to jump to the included recipe. You can even jump to the default recipe, e.g. gf on include_recipe 'git' will jump to the default.rb recipe in the git cookbook.

  2. If you have Foodcritic installed, Vim will display Foodcritic errors inline via Syntastic.

Syntastic Foodcritic errors

Ruby

  1. If you have Rubocop installed, Vim will display Rubocop errors inline via Syntastic.

  2. Surround variable with "#{ * }" using Tim Pope's Surround plugin.

  3. Surround text in Erb templates, "<% * -%>" and "<%= * %>" using Tim Pope's Surround plugin.

  4. Insert Ruby hash rocket, => via <Ctrl-l>.

Installation

First time install for Mac OS X or Linux

  1. Clone this repository:

    $ git clone https://github.com/dougireton/mirror_pond.git ~/.vim
  2. Chmod the install.sh script:

    $ chmod u+x ~/.vim/install.sh
  3. Run the install.sh script

    $ ~/.vim/install.sh
  4. Now you are ready to run Vim.

First time install for Windows

  1. Clone this repository:

    c:\> git clone https://github.com/dougireton/mirror_pond.git $HOME\.vim
  2. If you are using Vim < 7.4, you will need to create symlinks to .vimrc and .gvimrc:

    c:\> mklink $HOME\_vimrc $HOME\.vim\vimrc
    c:\> mklink $HOME\_gvimrc $HOME\.vim\gvimrc
  3. Make the .vim/bundle directory:

    c:\> mkdir $HOME\.vim\bundle
  4. Setup [Vundle]:

    c:\> git clone https://github.com/gmarik/vundle.git $HOME\.vim\bundle\vundle
  5. Install configured bundles:

    Launch vim, run :BundleInstall (or vim +BundleInstall +qall for CLI lovers)

About

An opinionated Vim distribution for Ruby and Chef development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published