Wednesday, July 30, 2014

Re: Word completion seems to have problem

On Mo, 28 Jul 2014, tom arnall wrote:

> Word completion seems to have problem:
>
> In this line:
>
> wordTom,wordDick, wordD
>
> When I try to complete 'wordD' with <c-p> or <c-n> I get:
>
> "Keyword completion: pattern not found"
>
> But, when I put instead this in the file (i.e., move 'wordD' to the next line):
>
> wordTom,wordDick
>
> wordD
>
> 'wordD' completes successfully.
>
> ':set complete' gets:
>
> complete=i

Tricky. I think what happens is this:
complete=i talks about included files. Included files are found for what
is specified with the 'include' option. I don't see any included files
here, so I wouldn't expect a match here. Use 'complete=.' if you want to
scan the current buffer (or even better, leave it at the default value).

Best,
Christian
--
Die Menschen achten den, der sie verachtet.
-- Honoré de Balzac

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment