Skip to main content


Auto Completing of gvim/vim for PHP

When I try to use vim to code, I found it’s lack of auto completing. Well, I got a solution for that. Please consolt the below information for tails.


  1. Download the function list file :

  2. Copy function list file to installation path of vim.

  3. Add the following code to the end of vimrc:

    "You can obtain the completion dictionary file from:
    set dictionary-=$VIM/funclist.txt dictionary+=$VIM/funclist.txt

    "Use the dictionary completion
    set complete-=k complete+=k

    "Auto completion using the TAB key
    "This function determines, wether we are on
    "the start of the line text(then tab indents)
    "or if we want to try auto completion
    function! InsertTabWrapper()
    let col=col(‘.’)-1
    if !col || getline(‘.’)[col–1] !~ ‘\k’
    return “\<TAB>”
    return “\<C-N>”

    "Remap the tab key to select action with InsertTabWrapper
    inoremap <TAB> <C-R>=InsertTabWrapper()<CR>

And pay attention on $VIM,that’s your vim’s config directory.