Skip to content

Instantly share code, notes, and snippets.

@complex857
Created February 19, 2015 07:39
Show Gist options
  • Save complex857/07caefdd2212f8cb5335 to your computer and use it in GitHub Desktop.
Save complex857/07caefdd2212f8cb5335 to your computer and use it in GitHub Desktop.
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
silent! 0put =cfile
silent! exec "set ft=phpcompletetempbuffer"
return [bufnr('$'), bufname('%')]
@@ -2307,7 +2307,7 @@ function! phpcomplete#GetClassContentsStructure(file_path, file_lines, class_nam
" remember the window we started at
let phpcomplete_original_window = winnr()
- silent! below 1new
+ silent! below new
silent! 0put =cfile
silent! exec "setlocal ft=phpcompletetempbuffer"
@@ -2648,7 +2648,7 @@ endfunction!
function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
let original_window = winnr()
- silent! below 1new
+ silent! below new
silent! 0put =a:file_lines
silent! exec "setlocal ft=phpcompletetempbuffer"
normal! G
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment