如何在Makefile中使用Vim Omni Completion?

时间:2022-10-31 10:51:12

I'd like to be able to use Vim omni-completion in Makefiles, so that I can get auto-complete for target dependencies and such. Anybody know how to do this?

我希望能够在Makefile中使用Vim omni-completion,这样我就可以自动完成目标依赖等等。有人知道怎么做吗?

1 个解决方案

#1


I'm not sure about omni-completion, but you can use normal completion in Vim.

我不确定omni-completion,但你可以在Vim中使用正常完成。

For example if you have a target called 'installdocs', you can type:

例如,如果您有一个名为'installdocs'的目标,则可以键入:

ins<C-n>

and Vim will complete the target name for you.

和Vim将为您完成目标名称。

#1


I'm not sure about omni-completion, but you can use normal completion in Vim.

我不确定omni-completion,但你可以在Vim中使用正常完成。

For example if you have a target called 'installdocs', you can type:

例如,如果您有一个名为'installdocs'的目标,则可以键入:

ins<C-n>

and Vim will complete the target name for you.

和Vim将为您完成目标名称。