We consider an electron with an anomalous magnetic moment, <i>g</i> > > 2, confined to a plane and interacting with a nonhomogeneous magnetic field <i>B</i>, and investigate the corresponding Pauli Hamiltonian. We prove a lower bound on the number of bound states for the case when <i>B</i> is of a compact support and the related flux is <i>N</i> + <i></i>, <i></i>(0, 1]. In particular, there are at least <i>N</i> + 1 bound states if <i>B</i> does not change sign. We also consider the situation where the magnetic field is due to a localized rotationally symmetric electric current vortex in the plane. In this case the flux is zero; there is a pair of bound states for a weak coupling, and higher orbital-momentum spin-down states appearing as the current strength increases.