pronoun, locative singular + enclitic conjunction (sandhi form imasmiñca)
Analysis. imasmiṃ (locative singular of ima 'this') + ca (enclitic 'and'); the locative ending -smiṃ assimilates before ca to -smiñ before the velar stops.
Etymology. ima is an anaphoric/deictic pronoun descended from Proto-Indo-European *i-mo- (pointing demonstrative), related to Sanskrit idam, Latin is 'this', and Greek i-s 'he'. The locative case marks position or reference-point ('in this', 'in regard to this').
Meanings from the Digital Pāḷi Dictionary; morphology and etymology by Claude.
Lite mode — plain HTML for e-readers and old browsers. Full version