开发者

PHP Vim autocomplete

开发者 https://www.devze.com 2023-03-26 12:59 出处:网络
I can not get the autocomplete to work for php files. I added the following to my .vimrc file but when I type c开发者_如何学Pythontl + o nothing happnens. When I type ctl + x i get -- ^X mode (^]^D^E^

I can not get the autocomplete to work for php files. I added the following to my .vimrc file but when I type c开发者_如何学Pythontl + o nothing happnens. When I type ctl + x i get -- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) at the bottom of vim.

filetype plugin on
autocmd FileType php set omnifunc=phpcomplete#CompletePHP


What you probably want is Ctrl + xCtrl + o in succession.

Incidentally, I map this to Ctrl + Space so as not to feel like I'm using Emacs.


I think you want ^P, but I'm not sure.

0

精彩评论

暂无评论...
验证码 换一张
取 消