Vim Autocompletion

vim linux

Vim has some really handy features that aren't immediately apparent.

Autocompleting file paths

One of these is the ability to autocomplete / navigate paths - type all of the following keys while holding Control:


Autocompleting variables

You can also autocomplete a word that's contained in the current file. This can be useful for method or variable autocompletion while programming.

To show a list of autocomplete options simply press Control + p or Control + n as with the file paths to select the previous or next match.

Published on 2018-05-12