From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.169.74 with SMTP id ac10cs75126vdc; Thu, 17 Mar 2011 11:25:21 -0700 (PDT) Received: by 10.43.58.135 with SMTP id wk7mr77192icb.433.1300386320828; Thu, 17 Mar 2011 11:25:20 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 13si3357214ibc.59.2011.03.17.11.25.20; Thu, 17 Mar 2011 11:25:20 -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 530E83C8059; Thu, 17 Mar 2011 14:25:20 -0400 (EDT) Received: from plecavalier.com (plecavalier.com [64.40.149.83]) by rubyforge.org (Postfix) with ESMTP id 03BAF185836B for ; Thu, 17 Mar 2011 14:14:48 -0400 (EDT) Received: (qmail 21899 invoked from network); 17 Mar 2011 13:14:48 -0500 Received: from 173-195-48.50.tel-ott.com (HELO localhost) (173.195.48.50) by thelittlecloset.ca with (DHE-RSA-AES128-SHA encrypted) SMTP; 17 Mar 2011 13:14:47 -0500 From: Philippe LeCavalier To: sup-talk In-reply-to: <1300378468-sup-2125@pruts.nl> References: <1300371571-sup-2777@plc.intranet.plecavalier.com> <1300378468-sup-2125@pruts.nl> Date: Thu, 17 Mar 2011 14:14:46 -0400 Message-Id: <1300384913-sup-4027@plc.intranet.plecavalier.com> User-Agent: Sup/0.12.1 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 Excerpts from Ico Doornekamp's message of Thu Mar 17 12:19:29 -0400 2011: > * 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 > That's pretty much what I expected since I had already visited the options for textwidth and the like. I can certainly get used to a kbd sequence since I expect that sort of thing when using Vim. In fact, since adopting sup my hands don't really leave the keyboard. However what James mentioned about formatoptions might alleviate that. James, I add these types of things to my vim line in config.yaml rather than my rc file. I to don't always want wrapping at 72 and the like. But I do always want this in sup. -- Thanks, Phil _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk