Wednesday, July 28, 2010

Re: new language command completion

On Thu, July 29, 2010 7:27 am, srikanth d wrote:
> Hi,
>
> I am trying to use a language which is not supported by vim yet.
> So, how do i incorporate this language into vim to enable auto command
> completion and probably to enable showing of syntax?
> Do we have any tutorial for this kind of thing?

For syntax highlighting, take a look at :h usr_44.txt and for
omni-completion, you need to write a filetype plugin for your language
or if you have written your own syntax highlighting, you can try to
use the syntax omni completion (see :h ft-syntax-omni).

If you decide to write your own omni completion script, that may get
complicated. Take a look at $VIMRUNTIME/autoload/*complete.vim files
to see, what these scripts may look like. But you should have a basic
understanding of the vim scripting language (:h eval.txt explains the
scripting language).

See also the help at :h compl-omni and possibly :h complete-functions,
which explains how to write completion scripts.

regards,
Christian

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: