From owner-svn-doc-head@freebsd.org Thu Jun 9 23:52:06 2016 Return-Path: Delivered-To: svn-doc-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F1CE4B70510; Thu, 9 Jun 2016 23:52:05 +0000 (UTC) (envelope-from wblock@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 96F191D0B; Thu, 9 Jun 2016 23:52:05 +0000 (UTC) (envelope-from wblock@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u59Nq4fe012573; Thu, 9 Jun 2016 23:52:04 GMT (envelope-from wblock@FreeBSD.org) Received: (from wblock@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u59Nq4o8012572; Thu, 9 Jun 2016 23:52:04 GMT (envelope-from wblock@FreeBSD.org) Message-Id: <201606092352.u59Nq4o8012572@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: wblock set sender to wblock@FreeBSD.org using -f From: Warren Block Date: Thu, 9 Jun 2016 23:52:04 +0000 (UTC) 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 X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2016 23:52:06 -0000 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 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 @@ <application>Vim</application> Install from editors/vim - or editors/vim-lite. + or editors/vim-lite, then follow the + configuration instructions in + . + + + Use + + Press P to reformat paragraphs or text that has been selected in Visual mode. Press + T to replace groups of eight spaces with a + tab. + Configuration Edit ~/.vimrc, adding these - lines: + lines to the end of the file: 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() - - - Use - - Press P to reformat paragraphs or text that has been selected in Visual mode. Press - T to replace groups of eight spaces with a - tab. -