Hi,
I am trying to convert the result of %c:p so that the path looks like C:\\somedir\\somedir2\test.txt.
C:\\somedir\\somedir2\test.txt
This is what I was trying
:echo expand("%c:p:gs/\//H/")
Hello,
/
:echo expand('%c:p:gs!/!\\\\!')
UPDATE. Double escaping of backslashes won't be needed in versions that follow v0.12 (commit that fixes it).
thanks! that worked perfect.