This is my vim configuration to work with Git + Puppet manifests, mostly it’s based on some good articles about this that I found online:
- Using vim and Debian to do puppet development
- Puppet editing like a pro
- Using Vim to edit Puppet code
Using this repository you’ll enable the following plugins:
- pathogen Makes it super easy to install plugins and runtime files in their own private directories.
- snipmate.vim snipMate.vim aims to be an unobtrusive, concise vim script that implements some of TextMate’s snippets features in Vim.
- syntastic Syntastic is a syntax checking plugin that runs files through external syntax checkers and displays any resulting errors to the user. This can be done on demand, or automatically as files are saved. If syntax errors are detected, the user is notified and is happy because they didn’t have to compile their code or execute their script to find them.
- tabular Sometimes, it’s useful to line up text. Naturally, it’s nicer to have the computer do this for you, since aligning things by hand quickly becomes unpleasant.
- vim-puppet Make vim more Puppet friendly!
- vim-fugitive Provides an amazingly deep Git integration for vim.
Also you’ll find a snippets directory with a custom list of snippet for Puppet.