How can I expand the full path of the current file to pass to a command in Vim?

:!mycommand %:p

Related:

:!cd %:p:h

Leave a Comment