I have two lines in a text file like below:
S_F _ID_T_O.DAT
If you want to join the selected lines (you are in visual mode), then just press gJ to join your lines with no spaces whatsoever.
gJ
This is described in greater detail on the vi/Vim Stack Exchange site.