Skip to content

Instantly share code, notes, and snippets.

@sharadchhetri
Created July 4, 2016 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharadchhetri/aa3f48645ccd3a73930aa706d964fc7d to your computer and use it in GitHub Desktop.
Save sharadchhetri/aa3f48645ccd3a73930aa706d964fc7d to your computer and use it in GitHub Desktop.
#################################################
# Description: Setup your vim for puppet work #
# Author: Sharad Chhetri #
# Blog: sharadchhetri.com #
# Version : 1.0 #
# Date: 4-July-2016 #
#################################################
#1: Create new hidden dir called .vim at user's home dir
mkdir ~/.vim
#2: Change directory to ~/.vim
cd ~/.vim
#3: Git clone the repo
git clone https://github.com/puppetlabs/puppet-syntax-vim.git
#4: Create hidden file called .vimrc at home directory
vim ~/.vimrc
#5: Add given below content in ~/.vimrc file.
set nocompatible
syntax on
filetype indent plugin on
set expandtab
set smarttab
set autoindent
au FileType puppet setlocal tabstop=8 expandtab shiftwidth=2 softtabstop=2
# 6: Enjoy working in puppet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment