在vimrc中加入下面这段,把方法名保存在一个文件中引入到字典中
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文件内容
# php-src/ext/bcmath/bcmath.c
# zend_function_entry bcmath_functions[] = {
bcadd
bccomp
bcdiv
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/calendar.c
# zend_function_entry ca)本文来(源gaodai#ma#com搞@@代~&码*网2
搞代gaodaima码
lendar_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_div
variant_eqv
variant_fix
variant_get_type
variant_idiv
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/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/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