Created
May 7, 2015 03:40
-
-
Save wordijp/f76bbb6f99a48cf4fe46 to your computer and use it in GitHub Desktop.
vimのneocomplete-phpをwindowsで動くようにする
This file contains 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
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