I have a 1992 K100 RS. It runs good at an idle and good up to 4,000 RPM. From 4,000 to 5,000 rpm it surges very noticeably. After 5000 it runs smooth again. Here is what I have done so far.
Replaced all plugs and two wires
Replaced all vacuum caps
Checked for air leaks, and checked vacuum hoses
Synced the throttle bodies
Good fresh fuel
Valves were checked a few months and very few miles ago by Max BMW
I bought the bike about a year ago not running with a bad fuel pump. I put in a new fuel pump and filter at the time and it has always done this I think. It is my son's bike and he always complained of a vibration in this 4-5,000 range but nothing serious. I noticed it the other day when I was replacing pugs and two wires because they were vibrating off. It is pretty bad if you hold the throttle at 4-5000 it goes up and down a lot but everywhere else it is smooth.
Thanks for your thoughts!