Skip to content

Instantly share code, notes, and snippets.

@nanliu
Created February 23, 2011 11:59
Show Gist options
  • Save nanliu/840337 to your computer and use it in GitHub Desktop.
Save nanliu/840337 to your computer and use it in GitHub Desktop.
Puppet AutoAlign
" AutoAlign: ftplugin support for Puppet
" Author: Nan Liu
" Date: Feb 23, 2011
" Version: 1
" ---------------------------------------------------------------------
let b:loaded_autoalign_puppet = "v1"
" overloading '=>' to keep things lined up {{{1
ino <silent> => =><c-r>=AutoAlign(1)<cr>
let b:autoalign_reqdpat1 = '=>'
let b:autoalign_notpat1 = '^\%(\%(=>\)\@!.\)*$'
let b:autoalign_trigger1 = '=>'
let b:autoalign_cmd1 = "'a,.Align =>"
" overloading '=' to keep things lined up {{{1
ino <silent> = =<c-r>=AutoAlign(2)<cr>
let b:autoalign_reqdpat2 = '='
let b:autoalign_notpat2 = '^\%(\%(=\)\@!.\)*$'
let b:autoalign_trigger2 = '='
let b:autoalign_cmd2 = "'a,.Align ="
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment