Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379195 - vim guide outaded, no more EDITOR= in rc.conf , eselect editor
Summary: vim guide outaded, no more EDITOR= in rc.conf , eselect editor
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Sven Vermeulen (RETIRED)
URL: http://www.gentoo.org/doc/en/vi-guide...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-14 20:17 UTC by William Waisse
Modified: 2011-08-15 20:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Waisse 2011-08-14 20:17:13 UTC
the vim guide says :
Code Listing 8.1: Setting vi as the default editor

(Set EDITOR to your preferred editor.)
#EDITOR="/bin/nano"
EDITOR="/usr/bin/vim"
#EDITOR="/usr/bin/emacs"

 bit there is no more EDITOR= setting in rc.conf, the official gentoo way to do this seems to be now : 
localhost supybot_fixes # eselect editor list
Available targets for the EDITOR variable:
  [1]   /bin/nano
  [2]   /usr/bin/ex
  [3]   /usr/bin/vi
  [ ]   (free form)
localhost supybot_fixes # eselect editor set 3
Setting EDITOR to /usr/bin/vi ...
>>> Regenerating /etc/ld.so.cache...
Run ". /etc/profile" to update the variable in your shell.



Reproducible: Always

Steps to Reproduce:
1.have a problem wit a fresh install trying to install xemacs as a dependecy of virtual/editor-0
2.try to setup your gentoo box to use vim as a default
3.read the vim guide and ask in #gentoo ;)
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2011-08-15 20:39:00 UTC
Thanks. I've changed the guide to show the eselect-way of doing things, but also how to set the EDITOR variable in a users' .bashrc file in case the user wants to do this for him, but not system-wide.

Thanks for reporting!