I have a file, which contains lines of function name, now I want to use them for code auto completion, and only for file names end with
How should I do it, is it possible to work with
ctags or Omni plugin?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
You can use dictionary completion, i.e.
and then trigger the insert-mode completion with
If you want this only for filetype
xxx, put the
In contrast, Omni completion gives you more power, but you have to write the completion function yourself. (You could write a function that reads in your file, but why do all the effort when Vim has this built-in?!)