Is there any way to enable code completion for Perl in vim?

前端 未结 8 1017
情歌与酒
情歌与酒 2021-02-01 04:07

Surprisingly as you get good at vim, you can code even faster than standard IDEs such as Eclipse. But one thing I really miss is code completion, especially for long variable na

8条回答
  •  不要未来只要你来
    2021-02-01 05:05

    Vim 7 supports omni completion.

    For example, I have this in my vimrc

    autocmd FileType php set omnifunc=phpcomplete#CompletePHP
    

    and then, when I press Ctrl-x Ctrl-o in Insert mode, I get a dropdown list of autocomplete possibilities.

    Here's an omnicfunc for perl. No idea how well it works though.

提交回复
热议问题