Skip to content

Commit a319703

Browse files
committed
up
1 parent 3a5f2c2 commit a319703

File tree

6 files changed

+206
-19
lines changed

6 files changed

+206
-19
lines changed

complete.vim

-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,3 @@ let g:SuperTabMappingTabLiteral = "<C-Tab>"
2727

2828
" Eclim 回车查看变量
2929
let g:EclimDefaultFileOpenAction = 'vsplit'
30-
nnoremap <silent> <buffer> <cr> :PhpSearchContext<cr>

ftdetect/nginx.vim

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
au BufRead,BufNewFile *.nginx set ft=nginx
2+
au BufRead,BufNewFile */etc/nginx/* set ft=nginx
3+
au BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx
4+
au BufRead,BufNewFile nginx.conf set ft=nginx

ftplugin/nginx.vim

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
setlocal commentstring=#\ %s

ftplugin/php.vim

+2
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@
2424
" au! BufWritePost *.php call PHPsynCHK()
2525
"
2626
" set errorformat=%m\ in\ %f\ on\ line\ %l
27+
28+
nnoremap <silent> <buffer> <cr> :PhpSearchContext<cr>

indent/nginx.vim

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
if exists("b:did_indent")
2+
finish
3+
endif
4+
let b:did_indent = 1
5+
6+
setlocal indentexpr=
7+
8+
" cindent actually works for nginx' simple file structure
9+
setlocal cindent
10+
" Just make sure that the comments are not reset as defs would be.
11+
setlocal cinkeys-=0#

0 commit comments

Comments
 (0)