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?

link|improve this question

67% accept rate
Quote from the script description: "In ':' mode, completion is available only after a '/'." Not really what I need. – Nickolay Kolev Sep 20 '11 at 7:45
feedback

1 Answer

up vote 1 down vote accepted

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.