diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2020-06-12 04:40:07 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2020-06-12 04:40:07 +0000 |
commit | 6a156bab1b41dfcbebcf69325dff81b73a2afad7 (patch) | |
tree | 39451253ebce7058ff7282090bd572ac36dff998 /chapter08/vim.xml | |
parent | ea7ec72fba2b9749da2c22db67152eccaef5dfb0 (diff) |
Mostly text updates in Chapter 8.
There are a couple of minor command changes.
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11924 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter08/vim.xml')
-rw-r--r-- | chapter08/vim.xml | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/chapter08/vim.xml b/chapter08/vim.xml index 4ec0d1a3b..4d06d5a08 100644 --- a/chapter08/vim.xml +++ b/chapter08/vim.xml @@ -54,11 +54,7 @@ <screen><userinput remap="pre">echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h</userinput></screen> -<!-- <para>Disable a test that fails:</para> - -<screen><userinput remap="pre">sed -i '/call/{s/split/xsplit/;s/303/492/}' src/testdir/test_recover.vim</userinput></screen> ---> - <para>Prepare Vim for compilation:</para> + <para>Prepare vim for compilation:</para> <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen> @@ -66,19 +62,17 @@ <screen><userinput remap="make">make</userinput></screen> - <para>To prepare the tests, ensure that the - <systemitem class="username">tester</systemitem> user can write - to the sources tree:</para> + <para>To prepare the tests, ensure that user + <systemitem class="username">tester</systemitem> can write + to the source tree:</para> <screen><userinput remap="test">chown -Rv tester .</userinput></screen> - <para>Now run the tests as the <systemitem - class="username">tester</systemitem> user:</para> + <para>Now run the tests as user <systemitem + class="username">tester</systemitem>:</para> <screen><userinput remap="test">su tester -c "LANG=en_US.UTF-8 make -j1 test" &> vim-test.log</userinput></screen> -<!--<screen><userinput remap="test">LANG=en_US.UTF-8 make -j1 test &> vim-test.log</userinput></screen>--> - <para>The test suite outputs a lot of binary data to the screen. This can cause issues with the settings of the current terminal. The problem can be avoided by redirecting the output to a log file as shown above. A @@ -100,7 +94,7 @@ for L in /usr/share/man/{,*/}man1/vim.1; do ln -sv vim.1 $(dirname $L)/vi.1 done</userinput></screen> - <para>By default, Vim's documentation is installed in <filename + <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 @@ -109,10 +103,10 @@ done</userinput></screen> <screen><userinput remap="install">ln -sv ../&vim-docdir;/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 + 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 additional libraries to be installed. For more information on this - process, refer to the Vim documentation and the Vim installation page + process, refer to the vim documentation and the vim installation page in the BLFS book at <ulink url="&blfs-book;postlfs/vim.html"/>.</para> @@ -157,7 +151,7 @@ EOF</userinput></screen> vi-compatible manner. Remove the <quote>no</quote> to keep the old <command>vi</command> behavior. The <parameter>set backspace=2</parameter> setting allows backspacing over line breaks, autoindents, and the start of - insert. The <parameter>syntax on</parameter> parameter enables vim's syntax + an insert. The <parameter>syntax on</parameter> parameter enables vim's syntax highlighting. The <parameter>set mouse=</parameter> setting enables proper pasting of text with the mouse when working in chroot or over a remote connection. Finally, the <emphasis>if</emphasis> statement with the @@ -165,18 +159,14 @@ EOF</userinput></screen> <command>vim</command>'s guess about the background color of some terminal emulators. This gives the highlighting a better color scheme for use on the black background of these programs.</para> -<!-- - <para>Creating an empty <filename>~/.vimrc</filename> prevents vim from - overriding settings in <filename>/etc/vimrc</filename> by using - <filename>/usr/share/vim/vim80/defaults.vim</filename>.</para> ---> + <para>Documentation for other available options can be obtained by running the following command:</para> <screen role="nodump"><userinput>vim -c ':options'</userinput></screen> <note> - <para>By default, Vim only installs spell files for the English language. + <para>By default, vim only installs spell files for the English language. To install spell files for your preferred language, download the <filename>*.spl</filename> and optionally, the <filename>*.sug</filename> files for your language and character encoding from <ulink |