Synchronize for consistent pasting.  Note this solution doesn't work in screen
Add closing tags automatically