Antibodies are powerful tools for delineating the specific function of protein domains, yet several limitations restrict their in vivo applicability. Here we present a new method to obtain sustained in vivo inhibition of specific protein domains using recombinant antibodies. We show that long term in vivo expression of single-chain Fv (scFv) fragments in the developing CNS can be achieved through retroviral transduction. Moreover, specific scFvs generated against the N- and C-terminal domains of the repulsive guidance molecule, RGMa, prevent proper axon targeting in the visual system. This work reveals a previously unappreciated role for the RGMa N-terminal domain in axon guidance, and provides a novel, broadly applicable and rapid procedure to functionally antagonize any protein domain in vivo.