From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.169.74 with SMTP id ac10cs71080vdc; Thu, 17 Mar 2011 09:54:28 -0700 (PDT) Received: by 10.231.140.80 with SMTP id h16mr3516ibu.39.1300380867592; Thu, 17 Mar 2011 09:54:27 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 12si3158296ibo.100.2011.03.17.09.54.27; Thu, 17 Mar 2011 09:54:27 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@jamestaylor.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 1E23019783BD; Thu, 17 Mar 2011 12:54:27 -0400 (EDT) X-Greylist: delayed 587 seconds by postgrey-1.31 at rubyforge.org; Thu, 17 Mar 2011 12:20:49 EDT Received: from jamestaylor.org (jamestaylor.org [67.207.142.119]) by rubyforge.org (Postfix) with ESMTP id 530E71858374 for ; Thu, 17 Mar 2011 12:20:49 -0400 (EDT) Received: from jamestaylor.org (localhost [127.0.0.1]) by jamestaylor.org (Postfix) with ESMTP id 5FAF311C006 for ; Thu, 17 Mar 2011 16:10:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jamestaylor.org; h= content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s=beta; bh= Cwpyfh4JMl/WWpHnSqmQaU8zstk=; b=EG6Pf1PyvyZe/uRDnv9T/vecWPR5+suZ GAKx0J/6ipCOP9qJJj5dqVsp34LHEEwnlC3lQRyiHcFnya7gTU/lEdeJPBLSMaXQ EpGsoc+Hjpk/CCdPKLeiTHSj1g35iEDOCRKLiEKgS4Sk57osG0xgFQEOdks35OXC MzM7WnuieP8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=jamestaylor.org; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; q=dns; s= beta; b=vIXOo4Ns1HsYHlNyrCA+kfdy5tA2EHqKF9EHqiretQPkNOMMYuXWyFxV 6ibRAbaO1M4e4LhpCF0X0ozRBD8f4ENtUyRPikhAi/3ZNxVZ5ZmbWaKiP4MhCWVc IsytDkvLhpCz+FTCwNVX8M9+BSUns8BfLoyfX1XPUUQ1G7LwXNE= Received: from bxlab01.rollins.emory.edu (aca-104001.nat.emory.edu [170.140.104.1]) by jamestaylor.org (Postfix) with ESMTPSA id 2C5D711C005 for ; Thu, 17 Mar 2011 16:10:59 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1082) From: James Taylor In-Reply-To: <1300375966-sup-3846@localhost> Date: Thu, 17 Mar 2011 12:10:57 -0400 Message-Id: <9C855374-896D-4D31-860E-A9160595914F@jamestaylor.org> References: <1300371571-sup-2777@plc.intranet.plecavalier.com> <1300375966-sup-3846@localhost> To: sup-talk X-Mailer: Apple Mail (2.1082) Subject: Re: [sup-talk] vim text wrapping X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org I use gqap constantly while writing email and other prose in vim. (:help gq gives you the following) """ gqgq gqgq gqq gqq Format the current line. With a count format that many lines. {not in Vi} v_gq {Visual}gq Format the highlighted text. (for {Visual} see Visual-mode). {not in Vi} gw gw{motion} Format the lines that {motion} moves over. Similar to gq but puts the cursor back at the same position in the text. However, 'formatprg' and 'formatexpr' are not used. {not in Vi} gwgw gwgw gww gww Format the current line as with "gw". {not in Vi} v_gw {Visual}gw Format the highlighted text as with "gw". (for {Visual} see Visual-mode). {not in Vi} Example: To format the current paragraph use: gqap > gqap The "gq" command leaves the cursor in the line where the motion command takes the cursor. This allows you to repeat formatting repeated with ".". This works well with "gqj" (format current and next line) and "gq}" (format until end of paragraph). Note: When 'formatprg' is set, "gq" leaves the cursor on the first formatted line (as with using a filter command). If you want to format the current paragraph and continue where you were, use: > gwap If you always want to keep paragraphs formatted you may want to add the 'a' flag to 'formatoptions'. See auto-format. """ On Mar 17, 2011, at 11:33 AM, Paul Grove wrote: > The answer to this question is in my interest also. > > Excerpts from Philippe LeCavalier's message of Thu Mar 17 14:26:51 +0000 2011: >> Hi All. >> >> This is more of a vim question than it is a sup one but I'm not a >> member of the vim list so I thought I'd ask you guys first. >> >> Since I don't write very well I always end up making changes while >> re-reading myself. When I edit a line Vim doesn't wrap anymore like it >> did when I first typed the text. So all the lines I've edited aren't >> wrapped like the others. It can make reading my mail challenging at >> times. >> >> Perhaps I'm misunderstanding how to properly edit text in vim? >> > _______________________________________________ > sup-talk mailing list > sup-talk@rubyforge.org > http://rubyforge.org/mailman/listinfo/sup-talk -- jt James Taylor, Assistant Professor, Biology / Computer Science, Emory University _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk