On 06/06/09 17:48, Wu, Yue wrote:
>
> On Fri, 05 Jun 2009 09:19:19 +0800, Wu, Yue<[email protected]>  wrote:
>
>> Can I use an input("Prompt: ", "default string", "completetype",
>> "inputtype"),
>> so I can special the type of it when calling, so after that when into
>> this type
>> of input() again,<up>/<down>  can navigate among the history of just
>> this type
>> of input()?
>>
>> In sum, different type of input() has its own history.
>>
>
> Any good advice?
>

Well, maybe you can, but you'll have to engineer it all yourself, maybe 
by saving successive inputs in some List variable, and intercepting 
arrow keys using getchar(), to navigate that List by increasing / 
decreasing an index into the list (and don't forget to know in advance 
what you must do when hitting <Up> at the oldest item, or <Down> at the 
latest).


Best regards,
Tony.
-- 
Barth's Distinction:
        There are two types of people: those who divide people into two
types, and those who don't.

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

Reply via email to