Here is a enhanced regular expression which is more useful
" this is tricky, either , or or lower to Upper change or Upper Upper
" lower will trigger inserting .*
" you type -> regex to match tags
" inP -> in.*P
" Aab -> Aab
" ABab -> AB.*ab
" A,ab -> A.*ab
let pattern =
'^'.substitute(a:base,',\|\U\zs\ze\u\|\u\u\zs\ze\U','\1.*','g')
vim is cool, eh?
I still don't know how to make this work with <c-x>c-i>? Any idea?
Perhaps getting a list by yourself.. matching the words of the buffer.
This would be a nice vim tip, wouldn't it?
Marc