Skip to content

spiette/vim-config-puppet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim configuration for puppet editing

Those files are meant to get easier puppet files editing. It use the pathogen plugin to configure this list of plugins:

The plugins will:

  • Automatically indent the code as you type it (mostly).
  • Align the =>
  • Set the proper tabulation configuration (ts=2, sw=2, sts=2, et, etc...)
  • Pass your .pp files under puppet-lint and/or puppet parser validate

To use, clone the repository like this (assuming no ~/.vim directory or .vimrc file already exists):

cd ~
git clone https://github.com/spiette/vim-config-puppet .vim
cd .vim
git submodule update --init # will fetch other plugins on github
cd -
ln -s .vim/vimrc .vimrc

To use syntastic with puppet, install puppet and puppet-lint

gem install puppet
gem install puppet-lint

Note: when using autoindent, pasting a block that begins with blank first lines will create a staircase effect. Before pasting, use :set paste , then paste, then do :set nopaste afterward.

About

minimal vim configuration for puppet editing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published