On Sun, Apr 26, 2009 at 10:24 PM, Andy Wokula <[email protected]> wrote:

>
> ivan budiselic schrieb:
> > Hi,
> >
> > I'm wondering if it's possible to get the insert mode cursor position in
> > Vim-script. col() and virtcol() don't really solve my problem because in
> > order to invoke my function, I'm using a mapping like
> >
> > imap <F2> <Esc>:call functionname()<CR>i
>
> instead, call the function with i_CTRL-R
>
>    :imap <F2> <C-R>=FuncName()<CR>
>
> and let the function return the empty string "" .
>

Thanks, that did the trick!

Ivan

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to