Paste an entire cut line at the end of another line in vim
To cut a line without new line, you can press d$
or D
from cursor location.
To paste it at the end of another line, you can go to its end and just press p
. In case, if you are not able to paste the line as you expected, you can go to the end of line where you wanted to paste. Then, press i
and then press <C-R>
(Control-R) and "
(double quotes). Your recently cut or copied text will be pasted.
After you pasted your line after your current one via p just press another j in your previous line to join the two lines, thus eliminating your unwanted line feed...