Christian Brabandt wrote:
Hi Charles!
On Do, 12 Jan 2012, Charles Campbell wrote:
Hello,
I have "hints" files that echo prototypes when a function name is
typed in insert mode.
Example:
so that when in insert mode and
abc(
is typed, a message is echo'd to the effect that:
void abc(void *ptr)
is displayed.
The problem I'm having involves the dot command; the<c-o>
apparently breaks the "small change":
assume one has a file with two lines:
one
two
Typing (with the above inorea... hint active):
1Gi(abc)<esc>j0.
yields
(abc) one
) two
Any suggestions on how to get around this issue?
Move the text, that is entered to the end of the inoreamap command,
after you have echoed all the information, so that the entered text
will become 1 change.
That would clearly be better than what I had, but consider:
i(abc)...
then "." at the beginning of some other line.
The result of the dot is
(abc) one
abc) two
Andy Wokula's solution works to produce
(abc) one
(abc) two
Thank you,
Chip Campbell
--
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