Green’s Dictionary of Slang

bim adv.

echoic of a sudden act, esp. of of one object hitting another.

[UK]Bridges Burlesque Homer (3rd edn) 482: The blackguard rascal’s broomstick hit bim, / On th’ huckle bone.
[UK]C. Mackay Life and Liberty in America 105: Among the pure Americanisms may be cited the following: [...] Bim. Hit him bim in the eye; that is, right in the eye.