views:

67

answers:

1

I have a vim script that uses a one line window to get a filename pattern from the user. This pattern can be completed to a full filename from a database if you press CTRL-X CTRL-O. Now the only problem is that you have to press the auto completion shortcut by yourself. But I want the auto completion to work incrementally so that for every character you type it automatically gets updated (think about the CTRL-R file open dialog in Eclipse).

Is there a way to use an autocommand or some kind of callback to call the function behind CTRL-X CTRL-O for each character the user is typing in this particular window?

A: 

Try - and modify if necessary - this plugin: http://www.vim.org/scripts/script.php?script_id=1879

I'm a happy user.

Zsolt Botykai
If I am not mistaking then it simply maps some of the keys so that they invoke a plugin function. Do you know any plugin that runs something on *any* input?
ZyX