1 |
swift 11/08/15 20:37:55 |
2 |
|
3 |
Modified: vi-guide.xml |
4 |
Log: |
5 |
Fix bug #379195 - Update how to select an editor, also mention this for user-only changes |
6 |
|
7 |
Revision Changes Path |
8 |
1.17 xml/htdocs/doc/en/vi-guide.xml |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/vi-guide.xml?rev=1.17&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/vi-guide.xml?rev=1.17&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/vi-guide.xml?r1=1.16&r2=1.17 |
13 |
|
14 |
Index: vi-guide.xml |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/vi-guide.xml,v |
17 |
retrieving revision 1.16 |
18 |
retrieving revision 1.17 |
19 |
diff -u -r1.16 -r1.17 |
20 |
--- vi-guide.xml 19 May 2008 19:59:02 -0000 1.16 |
21 |
+++ vi-guide.xml 15 Aug 2011 20:37:55 -0000 1.17 |
22 |
@@ -1,5 +1,5 @@ |
23 |
<?xml version="1.0" encoding="UTF-8"?> |
24 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/vi-guide.xml,v 1.16 2008/05/19 19:59:02 swift Exp $ --> |
25 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/vi-guide.xml,v 1.17 2011/08/15 20:37:55 swift Exp $ --> |
26 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
27 |
|
28 |
<guide link="/doc/en/vi-guide.xml"> |
29 |
@@ -20,8 +20,8 @@ |
30 |
catering to beginners. |
31 |
</abstract> |
32 |
|
33 |
-<version>1.1.7</version> |
34 |
-<date>2005-07-21</date> |
35 |
+<version>2</version> |
36 |
+<date>2011-08-15</date> |
37 |
|
38 |
<chapter> |
39 |
<title>Getting Started</title> |
40 |
@@ -715,15 +715,33 @@ |
41 |
</p> |
42 |
|
43 |
<p> |
44 |
-If you want to use vi as your default editor make the following change |
45 |
-to <path>/etc/rc.conf</path>: |
46 |
+If you want to use vi as your default editor, use <c>eselect</c>: |
47 |
</p> |
48 |
|
49 |
<pre caption="Setting vi as the default editor"> |
50 |
-<comment>(Set EDITOR to your preferred editor.)</comment> |
51 |
-#EDITOR="/bin/nano" |
52 |
-EDITOR="/usr/bin/vim" |
53 |
-#EDITOR="/usr/bin/emacs" |
54 |
+~# <i>eselect editor list</i> |
55 |
+Available targets for the EDITOR variable: |
56 |
+ [1] /bin/nano |
57 |
+ [2] /bin/ed |
58 |
+ [3] /usr/bin/ex |
59 |
+ [4] /usr/bin/vi |
60 |
+ [ ] (free form) |
61 |
+ |
62 |
+~# <i>eselect editor set 4</i> |
63 |
+Setting EDITOR to /usr/bin/vi ... |
64 |
+>>> Regenerating /etc/ld.so.cache... |
65 |
+Run ". /etc/profile" to update the variable in your shell. |
66 |
+</pre> |
67 |
+ |
68 |
+<p> |
69 |
+If you want to set this for your user only instead of system wide, set the |
70 |
+<c>EDITOR</c> variable in your <path>~/.bashrc</path>: |
71 |
+</p> |
72 |
+ |
73 |
+<pre caption="Setting vi as the users' editor"> |
74 |
+~$ <i>vi ~/.bashrc</i> |
75 |
+<comment>(...)</comment> |
76 |
+export EDITOR="/usr/bin/vi" |
77 |
</pre> |
78 |
|
79 |
</body> |