From owner-svn-doc-all@FreeBSD.ORG Wed Jul 2 20:09:36 2014 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E12ACB5F; Wed, 2 Jul 2014 20:09:36 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 B418E2C59; Wed, 2 Jul 2014 20:09:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s62K9a6Q061737; Wed, 2 Jul 2014 20:09:36 GMT (envelope-from wblock@svn.freebsd.org) Received: (from wblock@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s62K9a9t061734; Wed, 2 Jul 2014 20:09:36 GMT (envelope-from wblock@svn.freebsd.org) Message-Id: <201407022009.s62K9a9t061734@svn.freebsd.org> From: Warren Block Date: Wed, 2 Jul 2014 20:09:36 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r45199 - 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-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2014 20:09:37 -0000 Author: wblock Date: Wed Jul 2 20:09:36 2014 New Revision: 45199 URL: http://svnweb.freebsd.org/changeset/doc/45199 Log: Update the vim editor configuration. Submitted by: mat@ 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 Wed Jul 2 16:06:50 2014 (r45198) +++ head/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml Wed Jul 2 20:09:36 2014 (r45199) @@ -56,14 +56,14 @@ endif " has(autocmd) function Set_Highlights() "match ExtraWhitespace /^\s* \s*\|\s\+$/ - highlight OverLength ctermbg=red ctermfg=white guibg=#592929 + highlight default link OverLength ErrorMsg match OverLength /\%71v.\+/ return 0 endfunction function ShowSpecial() setlocal list listchars=tab:>>,trail:*,eol:$ - hi nontext ctermfg=red + hi def link nontext ErrorMsg return 0 endfunction " ShowSpecial() @@ -80,23 +80,19 @@ function Set_SGML() setlocal autoindent setlocal smartindent " Rewrap paragraphs - :map P gqj + noremap P gqj " Replace spaces with tabs - :map T :s/ /TAB/<CR> + noremap T :s/ /\t/<CR> call ShowSpecial() call Set_Highlights() return 0 endfunction " Set_SGML() - - Process the file to create embedded tabs: - - &prompt.user; perl -i'' -pe 's/TAB/\t/g' ~/.vimrc Use - Press P to reformat paragraphs. Press + 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.