question about neocomplcache

23 views
Skip to first unread message

王军

unread,
Nov 8, 2012, 1:31:40 AM11/8/12
to vim...@googlegroups.com

Hi

         I use neocomplcache.vim to complete my sources.

 

         It support camel case completion.

 

         If there is AxxBxxCxx, you can type AB,it will pop AxxBxxCxx.

 

         But I want to type ABC, then it pop AxxBxxCxx, because perhaps there are AxxBxxCxx, AxxBxxDxx, AxxBxxExx , AxxBxxFxx.

 

         In neocomplcache sripts, I found some source about this function,but I can’t understand complex regular expression!

 

    " Camel case completion."{{{

    if g:neocomplcache_enable_camel_case_completion

          \ && keyword_escape =~ '\u'

      let keyword_escape = substitute(keyword_escape, '\u\?\zs\U*',

            \ '\\%(\0\\l*\\|\U\0\E\\u*_\\?\\)', 'g')

    endif

"}}}

 

 

I hope someone can help me solve this question!

Thanks a lot!

 

Best regard!

Reply all
Reply to author
Forward
0 new messages