Vim command mode complete word

tab completionvim

Is there a way to get Vim in command mode to complete words from the current file? Say I have this file:

one
two
three
once

and I enter command line mode

:myruncommand o|

where | denotes the cursor position. How do I make Vim complete one or once when pressing Tab?

Best Answer

It's not possible natively, but it took about one minute to find this script and this one on vim.org.

Related Question