I am trying to use the join
command to join multiple strings. The join
command seems to add one character of space in between each of the strings. But I don't want any space added.
As an example, I'm working on a function that finds the associated .pdf file of a .tex file. So if I'm editing the file /home/user/paper.tex, I would like to create the string /home/user/paper.pdf. My attempt is
join([expand('%:p:r'), '.pdf'])
which returns /home/user/paper .pdf