/vim-parinfer

vim plugin to balance your parenthesis

Primary LanguageVim ScriptMIT LicenseMIT

vim-parinfer

This is a vim plugin for using parinfer to indent your clojure and lisp code.

It uses Chris Oakman's awesome viml implementation under the hood

pull requests // issues welcome

Installation

using pathogen:

cd ~/.vim/bundle
git clone git://github.com/bhurlow/vim-parinfer.git

using Vundle:

add

Plugin 'bhurlow/vim-parinfer'

to your .vimrc

run

:PluginInstall

Mappings

Parinfer is trigger on all TextChanged events within vim. If your version of Vim does not support the 'TextChanged' autocommand event you may use the following mapped commands:

  • >> - indents s-expression
  • << - dedents s-expression
  • dd - deletes line and balances parenthesis
  • p - puts line and balances parenthesis