On 03/05/09 02:12, Matteo Riva wrote:
>
> Actually nevermind, I just read (and thought) better, and came up with
> this:
>
> nmap \h :call MyInput()<CR>:normal a<a href="<C-O>"hp"><C-O>"np</a><CR>a
>
> function! MyInput()
> call inputsave()
> let @h = input("Enter URL: ")
> let @n = input("Enter name: ")
> call inputrestore()
> endfunction
>
> Is this the correct way?
It is one possible way, probably the easiest or one of the easiest.
Best regards,
Tony.
--
If you perceive that there are four possible ways in which a procedure
can go wrong, and circumvent these, then a fifth way will promptly
develop.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---