autocompletion - How can I use insert mode completion in a macro?

I'm trying to define a macro which quickly generates a list of random-ish words.I want the macro to turn this into a list likeabcdeinto thisarezzobywordsczarsdétenteeyrieWhat I have so far: put cursor on letter astart recording macro qqa enter insert mode<C-x><C-k> - perform dictionary completion on the character before cursor - in this case the lettera`<C-p> select the last item in the completion list that appears, on my system its the word arezzo. (N.B. I have longest included in my 'completeopt' setting, which is required ...Read more