aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/vim.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/vim.xml')
-rw-r--r--chapter06/vim.xml38
1 files changed, 20 insertions, 18 deletions
diff --git a/chapter06/vim.xml b/chapter06/vim.xml
index 768632561..aecbe3ac8 100644
--- a/chapter06/vim.xml
+++ b/chapter06/vim.xml
@@ -53,7 +53,7 @@ class="directory">/etc</filename>:</para>
<variablelist>
<varlistentry>
<term><parameter>--enable-multibyte</parameter></term>
-<listitem><para>This optional but highly recommended switch enables support for
+<listitem><para>This switch enables support for
editing files in multibyte character encodings. This is needed if using a
locale with a multibyte character set. This switch is also helpful to be able to
edit text files initially created in Linux distributions like Fedora Core that
@@ -73,25 +73,19 @@ redirecting the output to a log file.</para>
<para>Install the package:</para>
-<screen><userinput>make HELPSUBLOC=/usr/share/doc/vim-&vim-version; install</userinput></screen>
+<screen><userinput>make install</userinput></screen>
-<para>The meaning of the make option:</para>
+<para>In UTF-8 locales, the <command>vimtutor</command> program
+tries to convert the tutorials from ISO-8859-1 to UTF-8. Since
+some tutorials are not in ISO-8859-1, the text in them is thus made unreadable.
+If you unpacked the <filename>vim-&vim-version;-lang.tar.gz</filename>
+archive and are going to use a UTF-8 based locale, remove non-ISO-8859-1
+tutorials. An English tutorial will be used instead.</para>
+<!-- Removal is used instead of conversion in order for the user to be able to
+painlessly revert his UTF-8 locale choice. -->
-<variablelist>
- <varlistentry>
- <term><parameter>HELPSUBLOC=/usr/share/doc/vim-&vim-version;</parameter>
- </term>
- <listitem>
- <para>This defines the directory that Vim's documentation will be
- installed in. By default, Vim's documentation is installed in the
- <filename class="directory">/usr/share/vim</filename> hierarchy. Other
- packages install their documentation in the
- <filename class="directory">/usr/share/doc</filename> hierarchy, so the
- <parameter>HELPSUBLOC</parameter> option is used to ensure consistency.
- </para>
- </listitem>
- </varlistentry>
-</variablelist>
+<screen><userinput>rm -f /usr/share/vim/vim63/tutor/tutor.{gr,pl,ru,sk}
+rm -f /usr/share/vim/vim63/tutor/tutor.??.*</userinput></screen>
<para>Many users are used to using <command>vi</command> instead of
<command>vim</command>. To allow execution of <command>vim</command>
@@ -100,6 +94,14 @@ symlink:</para>
<screen><userinput>ln -sv vim /usr/bin/vi</userinput></screen>
+<para>By default, Vim's documentation is installed in
+<filename class="directory">/usr/share/vim</filename>. The following symlink
+allows the documentation to be accessed via
+<filename class="directory">/usr/share/doc/vim-&vim-version;</filename>, making
+it consistent with the location of documentation for other packages:</para>
+
+<screen><userinput>ln -sv ../vim/vim64/doc /usr/share/doc/vim-&vim-version;</userinput></screen>
+
<para>If an X Window System is going to be installed on the LFS
system, it may be necessary to recompile Vim after installing X. Vim
comes with a GUI version of the editor that requires X and some