svn commit: r48905 - head/en_US.ISO8859-1/books/fdp-primer/editor-config
Warren Block <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.doc |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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"> _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-doc-all To unsubscribe, send any mail to "[email protected]"