The vimphptab completion prompt is to add the following section to vimrc, and store the method name in a file and introduce it to the dictionary.
Set dictionary + =/home/lucifer/package/PHP_function.txt
Set complete-= k complete + = k
Function! InsertTabWrapper ()
Let col = col ('.')-1
If! Col | getline ('.') [col-1]! ~ '\ K'
Return "\ "
Else
Return "\ "
Endif
Endfunction
Inoremap = InsertTabWrapper ()
PHP_function.txt file content
# Php-src/ext/bcmath. c
# Zend_function_entry bcmath_functions [] = {
Bcadd
Bccomp
Bcp
Bcmod
Bcmul
Bcpow
Bcpowmod
Bcscale
Bcsqrt
Bcsub
# Php-src/ext/bz2/bz2.c
# Static zend_function_entry bz2_functions [] = {
Bzclose
Bzcompress
Bzdecompress
Bzerrno
Bzerror
Bzerrstr
Bzflush
Bzopen
Bzread
Bzwrite
# Php-src/ext/calendar. c
# Zend_function_entry calendar_functions [] = {
Cal_days_in_month
Cal_from_jd
Cal_info
Cal_to_jd
Easter_date
Easter_days
Frenchtojd
Gregoriantojd
Jddayofweek
Jdmonthname
Jdtofrench
Jdtogregorian
Jdtojewish
Jdtojulian
Jdtounix
Jewishtojd
Juliantojd
Unixtojd
# Php-src/ext/com_dotnet/com_extension.c
# Zend_function_entry com_dotnet_functions [] = {
Com_create_guid
Com_event_sink
Com_get_active_object
Com_load_typelib
Com_message_pump
Com_print_typeinfo
Variant_abs
Variant_add
Variant_and
Variant_cast
Variant_cat
Variant_cmp
Variant_date_from_timestamp
Variant_date_to_timestamp
Variant_p
Variant_eqv
Variant_fix
Variant_get_type
Variant_ip
Variant_imp
Variant_int
Variant_mod
Variant_mul
Variant_neg
Variant_not
Variant_or
Variant_pow
Variant_round
Variant_set
Variant_set_type
Variant_sub
Variant_xor
# Php-src/ext/com_dotnet/com_persist.c
# Static zend_function_entry com_persist_helper_methods [] = {
# Php-src/ext/ctype. c
# Static zend_function_entry ctype_functions [] = {
Ctype_alnum
Ctype_alpha
Ctype_cntrl
Ctype_digit
Ctype_graph
Ctype_lower
Ctype_print
Ctype_punct
Ctype_space
Ctype_upper
Ctype_xdigit
# Php-src/ext/curl/interface. c
# Zend_function_entry curl_functions [] = {
Curl_close
Curl_copy_handle
Curl_errno
Curl_error
Curl_exec
Curl_getinfo
Curl_init
Curl_multi_add_handle
Curl_multi_close
Curl_multi_exec
Curl_multi_getcontent
Curl_multi_info_read
Curl_multi_init
Curl_multi_remove_handle
Curl_multi_select
Curl_setopt
Curl_setopt_array
Curl_version
# Php-src/ext/date/php_date.c
# Zend_function_entry date_functions [] = {
Checkdate
Date
Date_create
Date_date_set
Date_default_timezone_get
Date_default_timezone_set
Date_format
Date_format_locale
Date_isodate_set
Date_modify
Date_offset_get
Date_parse
Date_sun_info
Date_sunrise
Date_sunset
Date_time_set
Date_timezone_get
Date_timezone_set
Getdate
Gmdate
Gmmktime
Gmstrftime
Idate
Localtime
Mktime
Strftime
Strtotime
Time
Timezone_abbreviations_list
Timezone_identifiers_list
Timezone_name_from_abbr
Timezone_name_get
Timezone_offset_get
Timezone_open
Timezone_transitions_get
# Zend_function_entry date_funcs_date [] = {
# Zend_function_entry date_funcs_timezone [] = {
# Php-src/ext/dba. c
# Zend_function_entry dba_functions [] = {
Dba_close
Dba_delete
Dba_exists
Dba_fetch
Dba_firstkey
Dba_handlers
Dba_insert
Dba_key_split
Dba_list
Dba_nextkey
Dba_open
Dba_optimize
Dba_popen
Dba_replace
Dba_sync
# Php-src/ext/dbase. c
# Zend_function_entry dbase_functions [] = {
Dbase_add_record
Dbase_close
Dbase_create
Dbase_delete_record
Dbase_get_header_info
Dbase_get_record
Dbase_get_record_with_names
Dbase_numfields
Dbase_numrecords
Dbase_open
Dbase_pack
Dbase_replace_record
# Php-src/ext/dom/php_dom.c
# Static zend_function_entry dom_functions [] = {
Dom_import_simplexml
# Php-src/ext/ereg. c
# Zend_function_entry ereg_functions [] = {
Ereg
Ereg_replace
Eregi
Eregi_replace
Split
Spliti
SQL _regcase
# Php-src/ext/exif. c
# Zend_function_entry exif_functions [] = {
Exif_imagetype
Exif_read_data
Exif_tagname
Exif_thumbnail
Read_exif_data
# Php-src/ext/fbsql/php_fbsql.c
# Zend_function_entry fbsql_functions [] = {
Fbsql
Fbsql_affected_rows
Fbsql_autocommit
Fbsql_blob_size
Fbsql_clob_size
Fbsql_close
Fbsql_commit
Fbsql_connect
Fbsql_create_blob
Fbsql_create_clob
Fbsql_create_db
Fbsql_data_seek
Fbsql_database
Fbsql_database_password
Fbsql_db_query
Fbsql_db_status
Fbsql_drop_db
Fbsql_errno
Fbsql_error
Fbsql_fetch_array
Fbsql_fetch_assoc
Fbsql_fetch_field
Fbsql_fetch_lengths
Fbsql_fetch_object
Fbsql_fetch_row
Fbsql_field_flags
Fbsql_field_len
Fbsql_field_name
Fbsql_field_seek
Fbsql_field_table
Fbsql_field _