I have a noremap
that sends the current full file path to an interpreter.
The problem is that on windows the \
need to be /
-- so when i pass expand("%:p")
an error is thrown.
I have figured how to do this with a string in the editing frame in vim using :s@\\@/@g
, however, i cannot figure out how to apply the substitute command to the string before sending it from vim to the interpreter.
Is this possible?