Skip to content

Instantly share code, notes, and snippets.

@complex857
complex857 / phpcomplete.vim
Created February 28, 2014 10:35
phpcomplete.vim bundle
This file has been truncated, but you can view the full file.
" 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 (::).
@complex857
complex857 / ctags-better-php.rb
Last active August 29, 2015 13:57
Ctags with the better-php-parser patches
require 'formula'
class CtagsBetterPhp < Formula
homepage 'http://ctags.sourceforge.net/'
url 'https://github.com/shawncplus/phpcomplete.vim/raw/master/misc/ctags-5.8_better_php_parser.tar.gz'
sha1 'bde914ed865868d9f50a8d68a35253c8e23a15f2'
# fixes http://sourceforge.net/tracker/?func=detail&aid=3247256&group_id=6556&atid=106556
def patches
{ :p2 => DATA }
@complex857
complex857 / .viminfo
Created October 17, 2014 12:56
sytactic locked var errros #1220
# 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):
@complex857
complex857 / noequalalways.patch
Created February 17, 2015 08:02
Patch tryin' to fix phpcomplete while "set noequalalways"
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
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