8
3
In Vim, when I am in insert mode, and I want to use file-name completion, I want the search path to be relative to the current file, not the current working directory. For instance, if in insert mode I type the following:
./
^X^F
The completion menu is showing me files in the :pwd
, but I would rather see the files in %:p:h
listed.
Is there an option that I can set to fix this, and if not what do you suggest as a workaround?
2Thank you!
autochdir
was great forC-X
,C-F
, but annoying when I'm 4 levels deep in a project and I want to:tabe
– Mark K Cowan – 2015-05-28T10:15:05.273