if
"file I'm working with"
you meant the file in your current buffer, you could just create a mapping with <expr>:
nnoremap <expr> <leader>c ':ConqueTermSplit ruby ' . expand("%p:%h"). "\<cr>"
related reference document:
:h <expr>
:h expand(
a safer solution will be wrapped expand(..)using the method shellescap()if the path to this file has special characters.
or save expand(...)using case %and shellescape():
nnoremap <expr> <leader>c ':ConqueTermSplit ruby ' . shellescape(@%,1). "\<cr>"
source
share