Skip to content

Instantly share code, notes, and snippets.

@denysvitali
Forked from 2called-chaos/install_nginx_vim.sh
Last active February 5, 2017 16:26
Show Gist options
  • Save denysvitali/bc4903831f789965fe8dfc69fefcef00 to your computer and use it in GitHub Desktop.
Save denysvitali/bc4903831f789965fe8dfc69fefcef00 to your computer and use it in GitHub Desktop.
enable nginx vim syntax highlighting (on Ubuntu/Debian)
#!/bin/sh
mkdir -p ~/.vim/syntax/
cd ~/.vim/syntax/
wget -O nginx.vim "http://www.vim.org/scripts/download_script.php?src_id=19394"
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