Thanks to all!

* As far as sam windows being unresponsive, of the reasons suggested, it seems that in my case I am not always entering commands on the last line. When this happens, the sam window does not respond to commands and gets stuck and I am only thereafter able to enter a command if I save the current file. This also sometimes happens after I hit "u". Not sure why.
* X/pathregex/b is a great tip. Thanks. 
* I did try using 'send' but it gives me a ?bad delimiter `e' error.
* Thank you for the clarification and resources Charles. I will go through the paper you recommended. Thanks too for helping me distinguish the newline errors. I had not noticed the difference between them.