Group related lines together and use 'P' for paste.