I agree with Jean... except that I make my 'selection-colour' is a little more 'orange' [255,200,30]... because sometimes 'pure-yellow' doesn't display so well and 'orange' isn't a commonly used colour either... π
My interpretation of your question is: You have a series of line segments touching end to end and you want them to be one line segment.
If this is correct, you might want to look at the Weld plugin.
Why did I think this? Because you said "connect".