【vim】AutoComplete

1. 下载:http://www.vim.org/scripts/script.php?script_id=1879 

2. 配置:

if !exists('g:AutoComplPop_Behavior')
    let g:AutoComplPop_Behavior = {}
    let g:AutoComplPop_Behavior['php'] = []
    call add(g:AutoComplPop_Behavior['php'], {
            \   'command'   : "\<C-x>\<C-o>",
            \   'pattern'   : printf('\(->\|::\|\$\)\k\{%d,}, 0),
            \   'repeat'    : 0, \})
endif

你可能感兴趣的:(PHP,autocomplete,command,vim,behavior)