So i have a bunch of files in a directory. I'm editing another file which have broken links/reference to these same files, and i want to edit them.

There isn't too much so doing it manually wouldn't take long...but how do i autocomplete their filename in the current buffer? example:




Where [TAB] is just the Tab key being pressed, for the sake of illustration.

  • Have a look at :h i_CTRL-X_CTRL-F Commented Jun 30, 2020 at 6:33
  • works, though i wish it would autocomplete/work using Tab instead Commented Jun 30, 2020 at 6:39
  • 2
    @NordineLotfi Even as a space guy if you don't use the tab key it might be because you are not aware of :h 'expandtab'. I would still recommend not to remap tab but Matt's comment should be a good answer.
    – statox
    Commented Jun 30, 2020 at 7:46
  • 1
    Do these answer your question? vi.stackexchange.com/q/6432/10604 vi.stackexchange.com/q/24708/10604
    – D. Ben Knoble
    Commented Jun 30, 2020 at 11:58
  • 1
    Yes, i can confirm what D. Ben posted indeed solve my case @statox sorry for the late answer. Commented Jul 2, 2020 at 23:32


Browse other questions tagged or ask your own question.