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

前端 未结 8 917
情歌与酒
情歌与酒 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条回答
  • 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.

    0 讨论(0)
  • 2021-02-01 05:05

    You should look at the SuperTab plugin: http://www.vim.org/scripts/script.php?script_id=1643 It let's you do completion (either the OmniCompletion or the regular completion) using tab and shift-tab instead of ^N and ^P.

    0 讨论(0)
提交回复
热议问题