summaryrefslogtreecommitdiff
path: root/.vim/ftplugin/php.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim/ftplugin/php.vim')
-rw-r--r--.vim/ftplugin/php.vim27
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