Skip to content

Instantly share code, notes, and snippets.

@adamrunner
Last active March 30, 2016 05:29
Show Gist options
  • Select an option

  • Save adamrunner/e0863d99482bfc583581 to your computer and use it in GitHub Desktop.

Select an option

Save adamrunner/e0863d99482bfc583581 to your computer and use it in GitHub Desktop.
add the nginx syntax plugin to vim
#!/bin/sh
mkdir -p ~/.vim/syntax
echo "au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/conf/* if &ft == '' | setfiletype nginx | endif" > ~/.vim/filetype.vim
wget -O ~/.vim/syntax/nginx.vim http://www.vim.org/scripts/download_script.php?src_id=19394
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment