]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - vim/after/ftplugin/php.vim
57bc1e57694a60d83cf56eb930a7baa6c05db803
[config/dotfiles.git] / vim / after / ftplugin / php.vim
1 " Vim filetype plugin file
2 "
3 " Language:     PHP
4 " Maintainer:   Simon Ruderich <simon@ruderich.org>
5 " License:      GPL v3+
6
7 " Copyright (C) 2008-2012  Simon Ruderich
8 "
9 " This file is free software: you can redistribute it and/or modify
10 " it under the terms of the GNU General Public License as published by
11 " the Free Software Foundation, either version 3 of the License, or
12 " (at your option) any later version.
13 "
14 " This file is distributed in the hope that it will be useful,
15 " but WITHOUT ANY WARRANTY; without even the implied warranty of
16 " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 " GNU General Public License for more details.
18 "
19 " You should have received a copy of the GNU General Public License
20 " along with this file.  If not, see <http://www.gnu.org/licenses/>.
21
22
23 " Don't allow short PHP tags (<? .. ?>) as they are not always available.
24 let b:php_short_tags = 0
25 " Highlight SQL queries in strings.
26 let b:php_sql_query = 1
27 " Fold PHP functions.
28 let b:php_folding = 3
29
30 " Automatically fix my wrong usage of kdb tags in phpdoc comments which don't
31 " exist and should be kbd tags. I make this typo all the time.
32 abbreviate <buffer> kdb kbd