-
Save the gist files to a directory
-
Open vim from that directory
-
:echo tagfiles()
should print['tags']
, so we can confirm tags found, the file was generated withctags -R .
-
Open test.php with
:e test.php
-
Hit
<c-x><c-o>
at the marked place (at the end of line 4) -
In the completion popup you should see:
findme ( f $a, $b = 'foo' findme_too( f $a, $b = 'foo'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/autoload/phpcomplete.vim b/autoload/phpcomplete.vim | |
index 1df1b40..01ba987 100644 | |
--- a/autoload/phpcomplete.vim | |
+++ b/autoload/phpcomplete.vim | |
@@ -1146,7 +1146,7 @@ endfunction " }}} | |
function! s:readfileToTmpbuffer(file) " {{{ | |
let cfile = join(readfile(a:file), "\n") | |
- silent! below 1new | |
+ silent! below new |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 101e3f4f349c8fe08c45bba1c00fa60bc50b1520 | |
Author: dudu <[email protected]> | |
Date: Tue Feb 17 08:54:30 2015 +0100 | |
Add equalalways manipulation to fix running out of space issues | |
diff --git a/autoload/phpcomplete.vim b/autoload/phpcomplete.vim | |
index 2a1329a..8a72a7d 100644 | |
--- a/autoload/phpcomplete.vim | |
+++ b/autoload/phpcomplete.vim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This viminfo file was generated by Vim 7.4. | |
# You may edit it if you're careful! | |
# Value of 'encoding' when this file was written | |
*encoding=utf-8 | |
# hlsearch on (H) or off (h): | |
~h | |
# Command Line History (newest to oldest): |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim completion script | |
" Language: PHP | |
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) | |
" Maintainer: Shawn Biddle ( shawn AT shawnbiddle DOT com ) | |
" Maintainer: Szabó Dávid ( complex857 AT gmail DOT com ) | |
" | |
" OPTIONS: | |
" | |
" let g:phpcomplete_relax_static_constraint = 1/0 [default 0] | |
" Enables completion for non-static methods when completing for static context (::). |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim completion script | |
" Language: PHP | |
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) | |
" Maintainer: Shawn Biddle ( shawn AT shawnbiddle DOT com ) | |
" Maintainer: Szabó Dávid ( complex857 AT gmail DOT com ) | |
" | |
" OPTIONS: | |
" | |
" let g:phpcomplete_relax_static_constraint = 1/0 [default 0] | |
" Enables completion for non-static methods when completing for static context (::). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim completion script | |
" Language: PHP | |
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) | |
" Maintainer: Shawn Biddle ( shawn AT shawnbiddle DOT com ) | |
" | |
" OPTIONS: | |
" | |
" let g:phpcomplete_relax_static_constraint = 1/0 [default 0] | |
" Enables completion for non-static methods when completing for static context (::). | |
" This generates E_STRICT level warning, but php calls these methods nontheless. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: Test/bug681824.php | |
=================================================================== | |
--- Test/bug681824.php (revision 804) | |
+++ Test/bug681824.php (working copy) | |
@@ -1,3 +1,4 @@ | |
+<?php | |
// Bugs item #681824, was opened at 2003-02-06 18:14 | |
// You can respond by visiting: | |
// https://sourceforge.net/tracker/?func=detail&atid=106556&aid=681824&group_id=6556 | |
Index: Test/simple.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MY_Controller extends CI_Controller { | |
public function __construct() { | |
parent::__construct(); | |
require_once APPPATH. '/libraries/MtHaml/Autoloader.php'; // or whereever you put that file | |
\MtHaml\Autoloader::register(); | |
$this->haml = new MtHaml\Environment('twig'); | |
} |
NewerOlder