File: README.md

package info (click to toggle)
vim-puppet 4~20181115%2Bgit4793b074-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 164 kB
  • sloc: sh: 28; makefile: 2
file content (48 lines) | stat: -rw-r--r-- 1,713 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
vim-puppet
==========

[![Build
Status](https://secure.travis-ci.org/rodjek/vim-puppet.png)](http://travis-ci.org/rodjek/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.
  * Ctags support
  * Doesn't require a bloated JRE
  * Doesn't take minutes to open

Additional useful plugins
-------------------------

 * [syntastic](https://github.com/scrooloose/syntastic) plugin for automatic
   syntax checking while in vim.
 * [vim-snippets](https://github.com/honza/vim-snippets) is a library of
   snippets for multiple languages, including Puppet. Works with both
   [snipmate](https://github.com/garbas/vim-snipmate) and
   [ultisnips](https://github.com/SirVer/ultisnips).
 * [Tagbar](https://github.com/majutsushi/tagbar) plugin for Ctags support.

Installation
------------

If you're using [pathogen](https://github.com/tpope/vim-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.