Tip57: Jump to the Filename Under the Cursor
January 12, 2021 ยท View on GitHub
Vim treats filenames in our document as a kind of hyperlink. When configured properly, we can use the gf command to go to the filename under the cursor.
gf
go to file
:set suffixesadd+=.ext
suffixesaddoption allows us to specify one or more file extensions, which Vim will attempt to use when looking up a filename with thegfcommand.
Specify the Directories to Look Inside We can configure 'path' option to reference a comma-separated list of directories. When we use gf command, Vim checks each of the directories listed in 'path' to see if it contains a filename that matches the text under the cursor.

.stands for the directory of the current file. empty string(delimited by two adjacent commas) stands for the working directory.