Skip to content

Instantly share code, notes, and snippets.

@AysadKozanoglu
Created August 20, 2018 19:55
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 AysadKozanoglu/3215ec4c269b8e653fc79c88572f061f to your computer and use it in GitHub Desktop.
Save AysadKozanoglu/3215ec4c269b8e653fc79c88572f061f to your computer and use it in GitHub Desktop.
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