> -----Original Message----- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Einspanjer > Sent: Sunday, April 09, 2006 9:45 PM > To: vim@vim.org > Subject: Re: Getting omnicomplete to work with my SQL dialect syntax? > > <David.Fishburn <at> sybase.com> writes: > > In the meantime, for what you are attempting to do the > syntaxcomplete > > plugin > should fit your needs. > > Just :source $VIMRUNTIME/autoload/syntaxcomplete.vim. > > > > Please pass any feedback you have along. > > I just got around to trying that, but it specifically tests > to make sure that omnifunc hasn't already been set so that > didn't work. Instead, I just explicitly setlocal > omnifunc=syntaxcomplete#Complete and syntaxcomplete.vim was > autoloaded properly and everything was fine (mostly :) > > The only thing I would like is if possible, could the > syntaxcomplete function detect the case of the string it is > completing and use a complimentary case? I know it might be > a can of worms, but if I complete "EXTRACT_" and it completes > as "extract_value" it feels a bit odd. > > Otherwise, it is working quite well, thanks for some > fantastic work there. :)
The 2.0 version of syntaxcomplete.vim will allow the user to choose whether it should ignorecase when filtering objects. By default, if &ignorecase is set, so will the syntaxcomplete plugin. You can override this by: let g:omni_syntax_ignorecase = 0 So working in your case above: > I complete "EXTRACT_" In this case, it will not find any matches since "extract_value" is of the wrong case. I am not sure really how to go about matching case effectively, since you could have had "extract_value, Extract_value, Extract_Value" and so on. Dave