Wiki

by yszheda

View project onGitHub

Tip 116: Autocomplete Filenames

Return to the top: <<Practical Vim>>

triggered by <C-x><C-f>

References:

# If you open the file in vim,
# then you can \"ayy@a the next line to execute the vim command: 
:h compl-filename
  • Vim's filenames autocompletion always expands paths relative to the working directory, not relative to the file that is currently being edited.