From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.169.74 with SMTP id ac10cs70187vdc; Thu, 17 Mar 2011 09:36:54 -0700 (PDT) Received: by 10.42.108.9 with SMTP id f9mr2352025icp.233.1300379814108; Thu, 17 Mar 2011 09:36:54 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id vb3si5644098icb.100.2011.03.17.09.36.52; Thu, 17 Mar 2011 09:36:53 -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 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id ACF9D3C8043; Thu, 17 Mar 2011 12:36:52 -0400 (EDT) Received: from steel.pruts.nl (pruts.nl [82.94.235.106]) by rubyforge.org (Postfix) with ESMTP id 11E761858375 for ; Thu, 17 Mar 2011 12:19:35 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by steel.pruts.nl (Postfix) with ESMTP id 3C9C6E20AA for ; Thu, 17 Mar 2011 17:19:35 +0100 (CET) X-Virus-Scanned: amavisd-new at pruts.nl Received: from steel.pruts.nl ([127.0.0.1]) by localhost (steel.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LwjaBbhEDCwq for ; Thu, 17 Mar 2011 17:19:29 +0100 (CET) Received: by steel.pruts.nl (Postfix, from userid 1000) id DD436E20B6; Thu, 17 Mar 2011 17:19:29 +0100 (CET) From: Ico Doornekamp To: sup-talk In-reply-to: <1300371571-sup-2777@plc.intranet.plecavalier.com> References: <1300371571-sup-2777@plc.intranet.plecavalier.com> Date: Thu, 17 Mar 2011 17:19:29 +0100 Message-Id: <1300378468-sup-2125@pruts.nl> User-Agent: Sup/git 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: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org * On Thu Mar 17 15:26:51 +0100 2011, Philippe LeCavalier wrote: > 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? I guess this can be called a 'feature' of vim, Bram probably has a good reason for making it behave as it does. As far as I know, wrapping only occurs when you are in insert mode adding text at the end of the current line, but not when you are inserting text in the middle of a line. My own habit is to just add or remove the text as a go, and hit the key sequence 'gwap' to clean up the mess, which means so much as 'reformat (rewrap) the current paragraph'. The vim help for '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} where {motion} would be 'ap', meaning 'a paragraph'. It looks kind of cumbersome in the beginning, but I'm very much used to it and don't even think about it anymore. -- :wq ^X^Cy^K^X^C^C^C^C _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk