summaryrefslogtreecommitdiff
path: root/.vim/ftplugin/php.vim
blob: c9add0f77730b018ff82817554d7c65e3f92031b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
" Mostly taken from
" http://www.schlitt.info/applications/blog/index.php?/archives/331-Comfortable-PHP-editing-with-VIM-3.html

" {{{ Settings

" Almost PEAR coding standard
set tabstop=2
set shiftwidth=2

" No autowrapping, PHP/HTML can have quite long lines :-/
set nowrap

" Auto indent after a {
set autoindent
set smartindent

" Correct indentation after opening a phpdocblock and automatic * on every
" line
set formatoptions=qroct

" }}} Settings

" The completion dictionary is provided by Rasmus:
" http://lerdorf.com/funclist.txt
set dictionary-=/home/tklauser/.php/funclist.txt dictionary+=/home/tklauser/.php/funclist.txt
" Use the dictionary completion
set complete-=k complete+=k