Created
February 23, 2011 11:59
-
-
Save nanliu/840337 to your computer and use it in GitHub Desktop.
Puppet AutoAlign
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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