1. First, the source need to switch to nginx installation package file:
# Cd /usr/local/zip/nginx-1.6.2 This is my nginx source file address
# ls
auto CHANGES CHANGES.ru conf configure contrib html LICENSE Makefile man objs README src
2. Switch to the folder vim
# cd contrib/vim
# ls
ftdetect indent syntax
3. The need these three files in vim folder copied to the vimfiles :
# cp -r ./* /usr/share/vim/vimfiles
At the moment syntax highlighting configuration is complete, open the nginx configuration file nginx.conf view.
vimfiles Address Lookup : find / -name "vimfiles"