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

Re: Running something in a terminal



Sven Burgener <svenb@bluewin.ch> wrote:
>On Mon, Jan 01, 2001 at 09:11:08AM -0600, Richard Cobbe wrote:
>> The bigger margin allows for more deeply-nested attributions before the
>> lines start wrapping, that's all.
>
>That can be cured, though.
>
>In vi (vim), I use the key-combination 'gqj'.

I tend to use 'gq}' to wrap entire paragraphs (or 'gqip' if I'm inside
the paragraph in question), but each to their own.

>This wraps lines nicely to the right length (set with ':set
>textwidth=72'). It even re-arranges the quote '>' characters nicely. I
>don't know whether this requires "vim-rt".

No, it doesn't, it's a vim builtin.

Something like 'au FileType mail set textwidth=72' in your .vimrc is
nice to have - that does require vim-rt, but you've got that anyway,
right? :)

>I just haven't figured out how to "replace" the powerquote 
>(like "sven> ") with plain '>'s if that can easily be done...

My .vimrc has a macro stolen from /usr/share/doc/vim/examples/mail:

  " ,kpq kill SuperCite (aka PowerQuote) quote (replacing it by `>')
  map ,kpq :%s/^> *[a-zA-Z]*>/> >/<C-M>

Season to taste depending on whether you use '>' or '> ' as your quote
prefix.

I found 'set comments' in vim the other day, too. It makes editing
Debian changelogs, and other things formatted as bullet-point lists, so
much more pleasant.

-- 
Colin Watson                                     [cjw44@flatline.org.uk]



Reply to: