The following just happened on a prefix installation that I am using: # eselect editor set vim Setting EDITOR to /root/gentoo/usr/bin/vim ... Run ". /etc/profile" to update the variable in your shell. In this case, it should be printing /root/gentoo/etc/profile, not /etc/profile.
Right, we need to add ${EROOT} here.
Fixed in Git: <http://git.overlays.gentoo.org/gitweb/?p=proj/eselect.git;a=commit;h=08806f2a29db0d9c182ab5b54a6943b3ebb65f0d>
Fixed in eselect-1.3.3. Thank you for reporting.