Added nginx.vim syntax

Also fixed <Leader>v to reload ~/.vimrc and not the currently open file
This commit is contained in:
Joshua Sherman 2014-01-09 14:22:17 -05:00
parent 1888436ecb
commit 3236a045ef

View file

@ -49,6 +49,7 @@ Bundle 'kien/ctrlp.vim'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'MarcWeber/vim-addon-mw-utils'
Bundle 'nanotech/jellybeans.vim'
Bundle 'nginx.vim'
Bundle 'othree/html5.vim'
Bundle 'pangloss/vim-javascript.git'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
@ -67,6 +68,7 @@ autocmd FileType c set omnifunc=ccomplete#CompleteCpp
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
au BufRead,BufNewFile nginx.conf set ft=nginx
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType svn,*commit* setlocal spell
@ -127,7 +129,7 @@ nnoremap <Leader>q :qa<CR>
nnoremap <Leader>r :silent !~/Source/dotfiles/scripts/refresh-safari<CR>:redraw!<CR>
nnoremap <Leader>ss / $<CR>
nnoremap <Leader>tt /\t$<CR>
nnoremap <Leader>v :so %<CR>
nnoremap <Leader>v :so ~/.vimrc<CR>
nnoremap <Leader>w :wa<CR>
nnoremap <Leader>ww :wa!<CR>