Sunday, December 25, 2011

hints_man2.vim breaks the dot register

Hi,

I'm using this hints_man2.vim plugin.
http://www.vim.org/scripts/script.php?script_id=1825

It shows function parameters info while you're typing, and
what it does is basically this:

inorea access access<c-o>:echoh HintHL<Bar>echo "int access(const char
* pathname, int mode)"<Bar>echoh None<cr>

I love this feature but the thing is that it breaks the dot
register (".). Say, you type:

if (access(path, R_OK)) {

and use .(dot) command. It inserts only
"(path, R_OK)) {" and not "if (access(path, R_OK)) {".
This is because vim leaves Insert mode once by the <c-o> command.

Does anyone come up with any workaround?

Incidentally, I'm thinking of making a similar plugin of PHP version.
Is there a such thing already?

Thanks,

--
AOYAMA Shotaro

--
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

No comments:

Post a Comment