René Nyffenegger's collection of things on the web
René Nyffenegger on Oracle - Most wanted - Feedback -
 

FileName [Vim Script]

Returns the filename or pathname of the actual buffer.
function! FileName()
  return expand('%:p')
endfu

function! PathName()
  return expand('%:p:h')
endfu
See also other Vim scripts.