From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.169.74 with SMTP id ac10cs17186vdc; Fri, 18 Mar 2011 07:35:07 -0700 (PDT) Received: by 10.42.138.195 with SMTP id d3mr1599389icu.241.1300458906994; Fri, 18 Mar 2011 07:35:06 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id i10si8521901iby.12.2011.03.18.07.35.05; Fri, 18 Mar 2011 07:35:05 -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 641C41678166; Fri, 18 Mar 2011 10:35:05 -0400 (EDT) Received: from plecavalier.com (thelittlecloset.ca [64.40.149.83]) by rubyforge.org (Postfix) with ESMTP id A4A88185836C for ; Fri, 18 Mar 2011 09:57:11 -0400 (EDT) Received: (qmail 26249 invoked from network); 18 Mar 2011 08:57:11 -0500 Received: from xplr-142-46-160-183.xplornet.com (HELO localhost) (142.46.160.183) by thelittlecloset.ca with (DHE-RSA-AES128-SHA encrypted) SMTP; 18 Mar 2011 08:57:02 -0500 From: Philippe LeCavalier To: sup-talk In-reply-to: <1300384913-sup-4027@plc.intranet.plecavalier.com> References: <1300371571-sup-2777@plc.intranet.plecavalier.com> <1300378468-sup-2125@pruts.nl> <1300384913-sup-4027@plc.intranet.plecavalier.com> Date: Fri, 18 Mar 2011 09:56:26 -0400 Message-Id: <1300456131-sup-3142@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 Philippe LeCavalier's message of Thu Mar 17 14:14:46 -0400 2011: > 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. Thought I'd post back after having lived with formatoptions+=a for a day. This options is _really_ annoying. It's hard to explain, but although it does what I wanted in that it automatically wraps text when editing lines it also drove me nuts because it prevents you from inserting linebreaks -something I do regularly. So I'm back to just -c 'set textwidth=72' and will employ the gwap kbd sequence. -- Thanks, Phil _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk