Search notes:

vim script: exepath

execpath("foo") returns the path of the executable foo.

See also

executable("foo") checks if foo is an executable in PATH.

Index