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.
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.
-
gf
on anyinclude_recipe
to jump to the included recipe. You can even jump to thedefault
recipe, e.g.gf
oninclude_recipe 'git'
will jump to thedefault.rb
recipe in thegit
cookbook. -
If you have Foodcritic installed, Vim will display Foodcritic errors inline via Syntastic.
-
If you have Rubocop installed, Vim will display Rubocop errors inline via Syntastic.
-
Surround variable with "#{ * }" using Tim Pope's Surround plugin.
-
Surround text in Erb templates, "<% * -%>" and "<%= * %>" using Tim Pope's Surround plugin.
-
Insert Ruby hash rocket,
=>
via<Ctrl-l>
.
-
Clone this repository:
$ git clone https://github.com/dougireton/mirror_pond.git ~/.vim
-
Chmod the install.sh script:
$ chmod u+x ~/.vim/install.sh
-
Run the install.sh script
$ ~/.vim/install.sh
-
Now you are ready to run Vim.
-
Clone this repository:
c:\> git clone https://github.com/dougireton/mirror_pond.git $HOME\.vim
-
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
-
Make the .vim/bundle directory:
c:\> mkdir $HOME\.vim\bundle
-
Setup [Vundle]:
c:\> git clone https://github.com/gmarik/vundle.git $HOME\.vim\bundle\vundle
-
Install configured bundles:
Launch
vim
, run:BundleInstall
(orvim +BundleInstall +qall
for CLI lovers)