Some questions have already touched the nature of habits, namely in the sense of good habits or their benefits. This answer explains how attachment occur from a repeated desire to engage in the phenomenon. But, psychology sees this same pattern for habits, and more so, in psychological literature habits occur independently of pleasure and of effort. A habit, when formed, continues usually even when no more satisfaction is derived from it, even if it produces no reward.
Thus, wouldn't bad habits be a form of attachment and potentially even worse given the lack of reward? By definition, unless they are positive, habits will continue occuring again and again despite nothing rewarding is produced.
Does Buddhism consider neutral habits, just habit itself, as unvirtuous? Is doing something repeatedly without reward, compulsively, a kind of potential attachment? Or does the Buddhist concept more so mean a pleasurable form of attachment?