diff --git a/.vim/filetype.vim b/.vim/filetype.vim new file mode 100644 index 0000000..c7d3669 --- /dev/null +++ b/.vim/filetype.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/conf/* if &ft == '' | setfiletype nginx | endif diff --git a/.vimrc b/.vimrc index 3ef9d1c..a43b883 100644 --- a/.vimrc +++ b/.vimrc @@ -6,6 +6,7 @@ set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim' + Plugin 'vim-scripts/nginx.vim' Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-sleuth' Plugin 'suan/vim-instant-markdown'