Created
July 4, 2016 16:09
-
-
Save sharadchhetri/aa3f48645ccd3a73930aa706d964fc7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################# | |
# 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