I’ve struggled with this for a few days now and not making much
progress.
I want to write my own autocomplete function for a file type.  What I
want to do is: I position just after entering the word “if”.  I press
CTL-X CTL-O, and I want vim to change my file to look like this :

If <cond>
Else
Endif

i.e. I want it to add three lines (not just substitute the “if”).  I
have made all the matching work and the function calls work but I
cannot understand how to get omnicomplete to return a three line
string instead of a single line.

Can anyone help?  Where am I going wrong?  Is this even possible?

R.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to