Hi, I don't know if this has been fixed or "featured", but I am facing a strange problem with completion. In particular, the following options seem to combine in weird ways:
vim -u NONE -U NONE /tmp/foobar :set ignorecase :set completeopt+=longest " insert the word "graph" on the first line " and "GraphNode" on second line. " on the third line, type Graph and press <C-p>. For me, the word I just typed completely dissapears and is replaced with the list containing "graph" and "GraphNode". It seems to be somewhat clear whats going on. Vim ignores case and therefore builds up the list with both "graph" and "GraphNode". But because we only want to display the longest common substring, it tries to find the longest common substring. In finding the common substring, it does respect case (although ignorecase is set) and therefore comes up with an empty string. For now, I am just going to set noignorecase to get around this, but it would be nice if this were fixed. On another note, I would like an option which only ignores case when searching. When doing completion, I have taken the trouble of typing "Graph" with a capital G, so I don't want case to be ignored. Is there a way to do this? Aah... there is... 'smartcase'. Cool... That seems to partly solve the problem. It works when I have atleast one upper case character typed before I press C-p. Doesn't completely solve it though. Anyway, I thought I'd report this since its so easily reproducible. Thanks, Srinath