[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] tiny patch re: editor (vim)



* 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