Skip to content

Instantly share code, notes, and snippets.

@tykeal
Created August 9, 2018 19:11
Show Gist options
  • Save tykeal/cfa5084d396e45015155ec9d44dcbcfe to your computer and use it in GitHub Desktop.
Save tykeal/cfa5084d396e45015155ec9d44dcbcfe to your computer and use it in GitHub Desktop.
Tykeal's quick vim enhancement setup
# Make sure the following applications are installed on your system:
# puppet, puppet-lint, shellcheck, yamllint
# If you aren't doing any puppet development then puppet & puppet-lint can be
# skipped as can rodjek/vim-puppet
mkdir -p ~/.vim/bundle && pushd ~/.vim/bundle
for i in scrooloose/syntastic godlygeek/tabular elzr/vim-json \
tpope/vim-pathogen rodjek/vim-puppet
do
git clone https://github.com/${i}.git
done
popd
# configure pathogen to work
echo '" add pathogen
runtime bundle/vim-pathogen/autoload/pathogen.vim
call pathogen#infect()' > ~/pathogen.txt
cat ~/pathogen.txt ~/.vimrc > .vimrc.new
mv .vimrc.new ~/.vimrc
rm -f ~/pathogen.txt
# configure yamllint to do our yaml linting
echo "\" set our yaml linter
let g:syntastic_yaml_checkers = ['yamllint']" >> ~/.vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment