Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wordijp/f76bbb6f99a48cf4fe46 to your computer and use it in GitHub Desktop.
Save wordijp/f76bbb6f99a48cf4fe46 to your computer and use it in GitHub Desktop.
vimのneocomplete-phpをwindowsで動くようにする
function! neocomplete#sources#php#helper#get_internal_function_list() " {{{
" 省略
try
let l:code = '$functions = get_defined_functions();'
- let l:code .= 'echo json_encode($functions["internal"]);'
+ let l:code .= 'echo json_encode($functions[\"internal\"]);'
- let l:cmd = 'php -r ''' . l:code . ''''
+ let l:cmd = 'php -r "' . l:code . '"'
let l:function_list = eval(system(l:cmd))
catch
" 省略
endfunction " }}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment