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?

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

Reply via email to