You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
.github/workflows | 2 years ago | |
after | 5 years ago | |
autoload/puppet | 2 years ago | |
compiler | 2 years ago | |
ctags | 3 years ago | |
ftdetect | 2 years ago | |
ftplugin | 2 years ago | |
indent | 2 years ago | |
syntax | 2 years ago | |
test | 2 years ago | |
.gitignore | 5 years ago | |
LICENSE | 5 years ago | |
README.md | 2 years ago |
README.md
vim-puppet
Make vim more Puppet friendly!
Provides
- Formatting based on the latest Puppetlabs Style Guide
- Syntax highlighting compatible with puppet 4.x
- Automatic => alignment
- If you don't like that, add
let g:puppet_align_hashes = 0
to your vimrc.
- If you don't like that, add
- Ctags support
- Doesn't require a bloated JRE
- Doesn't take minutes to open
Additional useful plugins
- vim-yardoc Syntax coloration for YARD tags and directives. It can also colorize the tags and directives in puppet files.
- syntastic plugin for automatic syntax checking while in vim.
- vim-snippets is a library of snippets for multiple languages, including Puppet. Works with both snipmate and ultisnips.
- Tagbar plugin for Ctags support.
Installation
If you're using pathogen to manage
your vim modules (and if you're not, why aren't you), you can simply add this
as a submodule in your ~/.vim/bundle/
directory.
My entire home directory is a git repository, so for me it's simply a case of
git submodule add -f git://github.com/rodjek/vim-puppet.git .vim/bundle/puppet
If you're not using pathogen, you can just manually place the files in the
appropriate places under ~/.vim/
Testing
Testing is based on vader.vim testing framework, see:
https://github.com/junegunn/vader.vim . To run full test suit use
./test/run-tests.sh
, this will also download vader.vim plugin to project's
folder.