Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking the value of variables instead of if it exists. #35

Merged
merged 4 commits into from
Apr 28, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
1. Do not overwrite variables if already defined.
  • Loading branch information
Benjamin Pearson committed Apr 28, 2014
commit 97fa87ed90ec5071a6b0c2e0524fdaf4f1ab6df1
20 changes: 15 additions & 5 deletions ftplugin/php.vim
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,21 @@ endfunction

" {{{ Settings
" First the global PHP configuration
let php_sql_query=1 " to highlight SQL syntax in strings
let php_html_in_strings=1 " to highlight HTML in string
let php_noShortTags = 1 " to disable short tags
let PHP_autoformatcomment = 1
let php_sync_method = -1
if (!exists('php_sql_query'))
let php_sql_query=1 " to highlight SQL syntax in strings
endif
if (!exists('php_html_in_strings'))
let php_html_in_strings=1 " to highlight HTML in string
endif
if (!exists('php_noShortTags'))
let php_noShortTags = 1 " to disable short tags
endif
if (!exists('php_autoformatcomment'))
let PHP_autoformatcomment = 1
endif
if (!exists('php_sync_method'))
let php_sync_method = -1
endif
if (!exists('php_folding'))
let php_folding = 1 "to enable folding for classes and functions
endif
Expand Down