Forge Home

vim

Managed vim with Puppet

120,726 downloads

116,272 latest version

4.6 quality score

Version information

  • 0.3.0 (latest)
  • 0.2.5
  • 0.2.4 (deleted)
  • 0.2.3
  • 0.2.2
  • 0.2.1
  • 0.2.0
  • 0.1.2
  • 0.1.1
released Jan 12th 2017
This version is compatible with:
  • RedHat, CentOS, OracleLinux, Scientific, Debian, Ubuntu, Gentoo, FreeBSD

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'WhatsARanjit-vim', '0.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add WhatsARanjit-vim
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install WhatsARanjit-vim --version 0.3.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: vim

Documentation

WhatsARanjit/vim — version 0.3.0 Jan 12th 2017

Build Status

Vim Module

Overview

This will setup and install vim with some a custom .vimrc and .vim directory that allow you to write Puppet code with ease.

Capabilities

Installalation includes:

  • vim-common
  • vim-enhanced

Requires:

  • *nix operating system

Vim_Profile Parameters

  • user The user for which you want to install custom vim plugins and bundles. Default: $name

  • group The group which should own the files laid down by the module in the user's home directory. Default: $name

  • puppet_lint The path to puppet-lint for auto-style checking. If you don't want puppet-lint installed, set to false. If your path is non-standard, set it here. Default: /usr/bin/puppet-lint for open source; /opt/puppet/bin/puppet-lint for PE

  • color Colorscheme to use for vim profile. Default: xoria256

Example Usage

Install vim:

include vim

Install vim_profile for root user:

vim::vim_profile { 'root': }

Install vim_profile for user foo:

vim::vim_profile { 'foo': }

Install vim_profile for user foo with custom puppet-lint path:

vim::vim_profile { 'foo':
  puppet_lint => '/sbin/puppet-lint',
}

Install vim_profile for user foo with group bar:

vim::vim_profile { 'foo':
  group => 'bar',
}

Install vim_profile for user foo with no puppet-lint testing:

vim::vim_profile { 'foo':
  puppet_lint => false,
}

Custom key mappings

  • ,a Line up stanza on = signs
  • ,s Line up stanza on => signs
  • ,q Single quote attribute value: attribute => 'value',
  • ,q Remove single quotes from attribute value: attribute => value,
  • ,w Double quote attribute value: attribute => "value",
  • ,W Remove double quotes from attribute value: attribute => value,