r6403 - trunk/BOOK/postlfs/editors

bdubbs at linuxfromscratch.org bdubbs at linuxfromscratch.org
Sun Jan 14 17:06:46 PST 2007


Author: bdubbs
Date: 2007-01-14 18:06:46 -0700 (Sun, 14 Jan 2007)
New Revision: 6403

Modified:
   trunk/BOOK/postlfs/editors/vim.xml
Log:
Added additional text to vim

Modified: trunk/BOOK/postlfs/editors/vim.xml
===================================================================
--- trunk/BOOK/postlfs/editors/vim.xml	2007-01-14 22:43:25 UTC (rev 6402)
+++ trunk/BOOK/postlfs/editors/vim.xml	2007-01-15 01:06:46 UTC (rev 6403)
@@ -143,6 +143,14 @@
 
 <screen role="root"><userinput>make install</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-7.0</filename>, making it consistent
+    with the location of documentation for other packages:</para> 
+ 
+<screen role="root"><userinput>ln -snfv ../vim/vim70/doc /usr/share/doc/vim-7.0</userinput></screen> 
+
   </sect2>
 
   <sect2 role="commands">
@@ -164,14 +172,79 @@
     <application>Vim</application> against <application>X</application>, use
     this switch.</para>
 
+    <para><option>--enable-perlinterp</option>, <option>--enable-pythoninterp</option>,
+    <option>--enable-tclinterp</option>, <option>--enable-rubyinterp</option>: 
+    Thses options include the Perl, Python, Tcl, or Ruby interpreters that allow 
+    using other application code in <application>vim</application> scripts.</para> 
+    
   </sect2>
 
+  <sect2 role="configuration">
+    <title>Configuring Vim</title>
+
+    <sect3 id='vim-config'>
+      <title>Config Files</title>
+
+      <para><filename>/etc/vimrc</filename> and
+      <filename>~/.vimrc</filename></para>
+
+      <indexterm zone="vim vim-config">
+        <primary sortas="e-etc-vimrc">/etc/vimrc</primary>
+      </indexterm>
+
+      <indexterm zone="vim vim-config">
+        <primary sortas="e-AA.vimrc">~/.vimrc</primary>
+      </indexterm>
+
+    </sect3>
+
+    <sect3 id='vim-init'>
+      <title>Configuration Information</title>
+
+      <para><application>Vim-7.0</application> introduced an
+      integrated spell checker that doesn't requires additional libraries to be
+      installed.  To enable the spell checker you can set the following in
+      one of the configuration files: </para>
+      
+<screen><literal>set spell
+spelllang=en,ru</literal></screen>
+      
+      <para>By default, <application>Vim</application> only installs spell
+      files for the English language.  If a spell file is not available for
+      your language, then <application>Vim</application> will call 
+      <filename>$VIMRUNTIME/plugin/spellfile.vim</filename> and will try to
+      obtain the *.spl and optionally *.sug from the vim ftp server, using the
+      <filename>$VIMRUNTIME/plugin/netrw</filename> plugin.</para> 
+   
+      <para>Alternatively you can manually download the *.spl and *.sug files
+      from: <ulink url="ftp://ftp.vim.org/pub/vim/runtime/spell/"/> and save
+      them to <filename class="directory"> ~/.vim/spell </filename> or in
+      <filename class="directory">
+      /usr/share/vim/vim70/spell/</filename>.</para> 
+   
+      <para>For more information about the spell checker and some other 
+      features in  <application>Vim-&vim-version;</application> (such us
+      vimgrep, tab-pages, and omni-completion), issue the following command inside
+      <application>Vim</application>:</para> 
+
+<screen><literal>:help version7</literal></screen> 
+
+      <para>For additional information on setting up
+      <application>Vim</application> configuration files, see <xref
+      linkend="postlfs-config-vimrc"/> and <ulink
+      url='http://www.vi-improved.org/vimrc.php'/>.  </para>
+
+    </sect3>
+
+  </sect2>
+
   <sect2 role="content">
     <title>Contents</title>
 
     <para>A list of the reinstalled files, along with their short
-    descriptions can be found at <ulink
-    url="&lfs-root;/chapter06/vim.html#contents-vim"/>.</para>
+    descriptions can be found in the <ulink
+    url="&lfs-root;/chapter06/vim.html#contents-vim">LFS Vim Installation 
+    Instrutions</ulink></para>
 
     <segmentedlist>
       <segtitle>Installed Programs</segtitle>




More information about the blfs-book mailing list