When I try change default editor through eselect, I got error: "!!! Error: You need root privileges!" user $ eselect editor list [1] /usr/bin/ex [2] /usr/bin/vi [ ] (free form) user $ eselect editor set 2 Setting EDITOR to /usr/bin/vi ... !!! Error: You need root privileges! exiting Documentation: "Each user can also set their own default editor with the eselect utility. " https://wiki.gentoo.org/wiki/Text_editor#User
that's because it's modifying the variable in /etc/profile (i think).
The last line in the wiki remarks: == Actually eselect modifies the file above. It seems that the old method of editing rc.conf doesn't work any more. == I could not find a better source of documentation than the wiki for the editor variable. The wiki should be updated as soon as we know more. Perhaps ulm can help in this case?
I guess the confusion is due to the dichotomy that somebody with root privileges is still called a "Gentoo user" (in contrast to a developer). "eselect editor" will update the system default for the EDITOR variable, which is set in the /etc/env.d/99editor file. root privileges are needed for that. So, not a bug in eselect, but the wiki page should be clarified. (You can do this yourself, therefore closing this bug.)