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

Re: Running something in a terminal



On Mon, Jan 01, 2001 at 04:40:13PM +0000, Colin Watson wrote:
> 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.

Didn't know about them...

> > 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? :)

Well, not quite. I use "set editor="vim -c 'set tw=72'"" in my .muttrc.

> > 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.

Cool!! Thanks! I just can't stand that unreadable power-quote stuff.

> 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.

vi(m) is just nice, ey? 8-)

Cheers,
Sven



Reply to: