]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Added Vim ftplugin file for PHP.
authorSimon Ruderich <simon@ruderich.org>
Fri, 17 Oct 2008 20:57:23 +0000 (22:57 +0200)
committerSimon Ruderich <simon@ruderich.org>
Fri, 17 Oct 2008 20:57:23 +0000 (22:57 +0200)
vim/after/ftplugin/php.vim [new file with mode: 0644]

diff --git a/vim/after/ftplugin/php.vim b/vim/after/ftplugin/php.vim
new file mode 100644 (file)
index 0000000..4456b09
--- /dev/null
@@ -0,0 +1,16 @@
+" Vim filetype plugin file
+" Language:     PHP
+" Maintainer:   Simon Ruderich <simon@ruderich.org>
+" Last Change:  2008-10-17
+
+
+" Don't allow short PHP tags (<? .. ?>) as they are not always available.
+let php_short_tags=0
+" Highlight SQL queries in strings.
+let php_sql_query=1
+" Fold PHP functions.
+let php_folding=3
+
+" Automatically fix my wrong usage of kdb tags in phpdoc comments which don't
+" exist and should be kbd tags. I make this typo all the time.
+abbreviate <buffer> kdb kbd