/[gentoo]/xml/htdocs/doc/en/vi-guide.xml
Gentoo

Diff of /xml/htdocs/doc/en/vi-guide.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.16 Revision 1.17
1<?xml version="1.0" encoding="UTF-8"?> 1<?xml version="1.0" encoding="UTF-8"?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/vi-guide.xml,v 1.16 2008/05/19 19:59:02 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/vi-guide.xml,v 1.17 2011/08/15 20:37:55 swift Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide link="/doc/en/vi-guide.xml"> 5<guide link="/doc/en/vi-guide.xml">
6<title>Learning vi -- the "cheatsheet" technique</title> 6<title>Learning vi -- the "cheatsheet" technique</title>
7<author title="Author"> 7<author title="Author">
18This guide will teach you how to use vi, using a cheat sheet method to 18This guide will teach you how to use vi, using a cheat sheet method to
19accelerate the learning process. This will be the first guide for vi, 19accelerate the learning process. This will be the first guide for vi,
20catering to beginners. 20catering to beginners.
21</abstract> 21</abstract>
22 22
23<version>1.1.7</version> 23<version>2</version>
24<date>2005-07-21</date> 24<date>2011-08-15</date>
25 25
26<chapter> 26<chapter>
27<title>Getting Started</title> 27<title>Getting Started</title>
28<section> 28<section>
29<title>Introduction</title> 29<title>Introduction</title>
713that within the week, you'll have nearly all the commands memorized 713that within the week, you'll have nearly all the commands memorized
714and your vi productivity will shoot through the roof! 714and your vi productivity will shoot through the roof!
715</p> 715</p>
716 716
717<p> 717<p>
718If you want to use vi as your default editor make the following change 718If you want to use vi as your default editor, use <c>eselect</c>:
719to <path>/etc/rc.conf</path>:
720</p> 719</p>
721 720
722<pre caption="Setting vi as the default editor"> 721<pre caption="Setting vi as the default editor">
723<comment>(Set EDITOR to your preferred editor.)</comment> 722~# <i>eselect editor list</i>
724#EDITOR="/bin/nano" 723Available targets for the EDITOR variable:
724 [1] /bin/nano
725 [2] /bin/ed
726 [3] /usr/bin/ex
727 [4] /usr/bin/vi
728 [ ] (free form)
729
730~# <i>eselect editor set 4</i>
731Setting EDITOR to /usr/bin/vi ...
732>>> Regenerating /etc/ld.so.cache...
733Run ". /etc/profile" to update the variable in your shell.
734</pre>
735
736<p>
737If you want to set this for your user only instead of system wide, set the
738<c>EDITOR</c> variable in your <path>~/.bashrc</path>:
739</p>
740
741<pre caption="Setting vi as the users' editor">
742~$ <i>vi ~/.bashrc</i>
743<comment>(...)</comment>
725EDITOR="/usr/bin/vim" 744export EDITOR="/usr/bin/vi"
726#EDITOR="/usr/bin/emacs"
727</pre> 745</pre>
728 746
729</body> 747</body>
730</section> 748</section>
731<section> 749<section>

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20