How to put current directory in vim command line

vim

Solution

:execute 'VCSStatus' getcwd()

should do the trick. Should you wish to use the current file's directory instead, it'd be:

:execute 'VCSStatus' expand('%:p:h')

(`%` refers to the current file, `:p` modifies to a full absolute path, and `:h` cuts off the filename; cp. `:help filename-modifiers`)

Problem

I'd like to call the VCSStatus function passing the current working directory (whatever `:pwd` returns) to it. It has to be the full path, and no special characters such as "." are accepted.

Original source