Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jun 2016 23:52:04 +0000 (UTC)
From:      Warren Block <wblock@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r48905 - head/en_US.ISO8859-1/books/fdp-primer/editor-config
Message-ID:  <201606092352.u59Nq4o8012572@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wblock
Date: Thu Jun  9 23:52:04 2016
New Revision: 48905
URL: https://svnweb.freebsd.org/changeset/doc/48905

Log:
  Rework vim editor configuration section to be clearer.
  From BSDCan 2016 Doc lounge.
  
  Reported by:	Chris Amos <spazmaticcelery@hotmail.com>

Modified:
  head/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml

Modified: head/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml	Thu Jun  9 20:16:47 2016	(r48904)
+++ head/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml	Thu Jun  9 23:52:04 2016	(r48905)
@@ -41,13 +41,23 @@
     <title><application>Vim</application></title>
 
     <para>Install from <package>editors/vim</package>
-      or <package>editors/vim-lite</package>.</para>
+      or <package>editors/vim-lite</package>, then follow the
+      configuration instructions in
+      <xref linkend="editor-config-vim-config"/>.</para>
+
+    <sect2 xml:id="editor-config-vim-use">
+      <title>Use</title>
+
+      <para>Press <keycap>P</keycap> to reformat paragraphs or text that has been selected in Visual mode.  Press
+	<keycap>T</keycap> to replace groups of eight spaces with a
+	tab.</para>
+    </sect2>
 
     <sect2 xml:id="editor-config-vim-config">
       <title>Configuration</title>
 
       <para>Edit <filename>~/.vimrc</filename>, adding these
-	lines:</para>
+	lines to the end of the file:</para>
 
       <programlisting>if has("autocmd")
     au BufNewFile,BufRead *.sgml,*.ent,*.xsl,*.xml call Set_SGML()
@@ -88,14 +98,6 @@ function Set_SGML()
     return 0
 endfunction " Set_SGML()</programlisting>
     </sect2>
-
-    <sect2 xml:id="editor-config-vim-use">
-      <title>Use</title>
-
-      <para>Press <keycap>P</keycap> to reformat paragraphs or text that has been selected in Visual mode.  Press
-	<keycap>T</keycap> to replace groups of eight spaces with a
-	tab.</para>
-    </sect2>
   </sect1>
 
   <sect1 xml:id="editor-config-emacs">



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606092352.u59Nq4o8012572>