From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.224.197 with SMTP id ip5cs21870icb; Wed, 16 Feb 2011 11:07:20 -0800 (PST) Received: by 10.224.20.9 with SMTP id d9mr1253929qab.228.1297883239873; Wed, 16 Feb 2011 11:07:19 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id x11si138748qcm.77.2011.02.16.11.07.18; Wed, 16 Feb 2011 11:07:18 -0800 (PST) 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 7C2D31858392; Wed, 16 Feb 2011 14:07:18 -0500 (EST) Received: from steel.pruts.nl (pruts.nl [82.94.235.106]) by rubyforge.org (Postfix) with ESMTP id 3350C18581F3 for ; Wed, 16 Feb 2011 13:42:10 -0500 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by steel.pruts.nl (Postfix) with ESMTP id 7F5D1E20A1 for ; Wed, 16 Feb 2011 19:42:09 +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 KDjSF-Hqk1yF for ; Wed, 16 Feb 2011 19:42:07 +0100 (CET) Received: by steel.pruts.nl (Postfix, from userid 1000) id 9E6CBE20B9; Wed, 16 Feb 2011 19:42:07 +0100 (CET) From: Ico Doornekamp To: sup-talk In-reply-to: <1297876563-sup-2003@daphne> References: <1297876563-sup-2003@daphne> Date: Wed, 16 Feb 2011 19:42:07 +0100 Message-Id: <1297881617-sup-3074@pruts.nl> User-Agent: Sup/git Subject: Re: [sup-talk] tiny patch re: editor (vim) 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 Wed Feb 16 18:34:39 +0100 2011, Christer Edwards wrote: > In any case, below is a tiny patch to configure vim to wrap text at 72 > characters. This patch is specific to the initial file that is used at > sup-config, but the same line could be edited in your local > .sup/config.yaml. > > In any case, see the example below to configure your textwidth. > > > --- lib/sup.rb 2011-02-16 09:08:19.373333347 -0700 > +++ lib/sup.rb.new 2011-02-16 09:20:07.816666681 -0700 > @@ -289,7 +289,7 @@ > :gpgkey => "" > } > }, > - :editor => ENV["EDITOR"] || "/usr/bin/vim -f -c 'setlocal spell spelllang=en_us' -c 'set filetype=mail'", > + :editor => ENV["EDITOR"] || "/usr/bin/vim -f -c 'setlocal spell spelllang=en_us' -c 'set filetype=mail' -c 'set textwidth=72'", > :thread_by_subject => false, > :edit_signature => false, > :ask_for_from => false, Funny, the default vim comes with the 'mail' filetype plugin which already handles setting the text width to 72, so I never needed to do anything to get this behaviour. Strange that this does not work for you out of the box -- :wq ^X^Cy^K^X^C^C^C^C _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk