sponsor Vim development Vim logo Vim Book Ad

xpcomplete : Completion for the XP-Framework (php)

 script karma  Rating 8/2, Downloaded by 752  Comments, bugs, improvements  Vim wiki

created by
Sebastian Kusnier
 
script type
utility
 
description
This file provides the ability to handle a better completion with the XP-Framework. This file is based on the original version from phpcomplete.vim delivered by a standard vim installation.

XP-Framework: http://xp-framework.net/

Requirements:

ctags:
Use absolute paths and --PHP-kinds=+cfidv for your ctag files

Example:
ctags -f $HOME/devel/xp.ctags/tags \\
--langmap=\"php:+.inc\" \\
-h \".php.inc\" -R --totals=yes \\
--PHP-kinds=+cfidv \\
--fields=+iaS \\
$HOME/devel/xp.public/trunk/skeleton \\
$HOME/devel/xp.public/trunk/ports/classes \\
$HOME/devel/xp.projects/**/src

TODO:
Screenshots
Better description
 
install details
save xpcomplete.vim in ~/.vim/autoload/

add follogwing to your vimrc:
autocmd FileType php set omnifunc=xpcomplete#CompletePHP
set tags+=$HOME/devel/xp.ctags/tags

If ctags isn't installed you can download it from its homepage http://ctags.sourceforge.net/ or if you're running Debian/Ubuntu you can install it by executing the following shell command:

    sudo apt-get install exuberant-ctags
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
xpcomplete.vim r660 2010-06-20 7.0 Sebastian Kusnier Previous Bugfix was not perfect
This version should work better
xpcomplete.vim v659 2010-06-19 7.0 Sebastian Kusnier Bugfix:
- Solved problem with nested function calls
xpcomplete.vim r653 2010-06-15 7.0 Sebastian Kusnier Initial upload
ip used for rating: 3.144.97.189

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github