diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2010-01-02 17:27:44 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2010-01-02 17:27:44 +0100 |
commit | 85b5baef260e770966cdc873a4e8eab05d935b64 (patch) | |
tree | ce4a1bb58100ad1a6307db08b40a94aa16797478 /.vim/ftplugin/php.vim |
Initial commit of vim config
Diffstat (limited to '.vim/ftplugin/php.vim')
-rw-r--r-- | .vim/ftplugin/php.vim | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.vim/ftplugin/php.vim b/.vim/ftplugin/php.vim new file mode 100644 index 0000000..c9add0f --- /dev/null +++ b/.vim/ftplugin/php.vim @@ -0,0 +1,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 |