Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to autocomplete path in Vim insert mode

📅 2016-Oct-06 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

Vim path autocomplete in insert mode
Vim path autocomplete in insert mode

It is useful to be able to autocomplete a path to a directory or filename while typing code or script files. This helps in ensuring that there are no mistakes and the path is correct. Thankfully, Vim has an autocompletion feature for typing path in insert mode! It calls this feature as file name completion.

Tried with: Vim 7.4 and Ubuntu 14.04