Last active
January 21, 2022 23:09
-
-
Save majidalaeinia/fd79282367ed26e4e291bb0a29ecfcf4 to your computer and use it in GitHub Desktop.
Enable Vim Syntax Highlighting for NGINX Files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p ~/.vim/syntax/ | |
wget https://www.vim.org/scripts/download_script.php?src_id=27919 -O ~/.vim/syntax/nginx.vim | |
cat > ~/.vim/filetype.vim <<EOF | |
au BufRead,BufNewFile /etc/nginx/*,/etc/nginx/conf.d/*,/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