Setting the default editor in Gentoo
For some reason, the default editor in Gentoo is Nano instead of vi or emacs. To change the default you need to edit your rc.conf file. You should see something like the following in the file:
To change your editor, add a pound sign (#) in front of the EDITOR="/bin/nano" line and remove the pound sign at the beginning of the line that contains the editor you want to use. If you want to use an editor other than vi or emacs, you can add new line with the path to the name of your editor.
# Set EDITOR to your preferred editor. EDITOR="/bin/nano" #EDITOR="/usr/bin/vim" #EDITOR="/usr/bin/emacs"
To change your editor, add a pound sign (#) in front of the EDITOR="/bin/nano" line and remove the pound sign at the beginning of the line that contains the editor you want to use. If you want to use an editor other than vi or emacs, you can add new line with the path to the name of your editor.
| Rating: | no ratings, 0 total Votes |
| Categories: | linux Gentoo |
| Added: | on Jul 05, 2007 at 8:44 am |
| Added By: | an anonymous user |

