Thursday, June 7, 2012

Re: How to track down the cause of incorrect completion of in a .mkd file?

On Thursday, June 7, 2012 10:19:22 AM UTC-5, Peng Yu wrote:
> Hi,
>
> I have the following plugins installed.
>
> <http://bla.bla>
>
> If I complete the last '>' at the end of the above line in a .mkd
> file, I will get the following completion.
>
> <http://bla.bla></http://bla.bla>
>

What were you expecting to get? Why? What command did you use to start completion?

>
> It is confirmed that this is not due to the vim-pandoc plugin.
>
> https://github.com/vim-pandoc/vim-pandoc/issues/56#issuecomment-6169052
>
> And the problem still exists when I removed the link bundle/html5.vim,
> so the problem is not caused by autoload/htmlcomplete.vim in bundle-
> available/htm5.vim.
>
> Does anybody have any idea on how to debug what causes the problem?
>

First check:

:verbose set completefunc? omnifunc? complete?

(depending on which kind of completion you tried to use, these options may affect it)

If that doesn't show you anything worthwhile, do a binary search for the offending plugin. First remove half your plugins from your runtime path. If the problem persists, remove half the remainder and try again. If the problem goes away, choose the half you discarded and try again. Continue until you have only 1 plugin left.

--
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: