Skip to content

Instantly share code, notes, and snippets.

@benatkin
Forked from 2called-chaos/install_nginx_vim.sh
Last active December 18, 2015 12:58
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 benatkin/5786223 to your computer and use it in GitHub Desktop.
Save benatkin/5786223 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir -p ~/.vim/syntax/
curl http://www.vim.org/scripts/download_script.php?src_id=19394 > ~/.vim/syntax/nginx.vim
cat >> ~/.vim/filetype.vim <<EOF
au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/conf/* if &ft == '' | setfiletype nginx | endif
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment