, vim , . , latex, vim, .
You probably know this and want to simply extract the path from the file name and provide it as an argument to the -ocommand option latex. Just use the shell features:
:!latex % -output-directory `dirname "%"`
I'm not sure if this is a parameter -output-directory, but you get what you asked for - the directory name of the file you are editing.
source
share