Re: Increasing quote level while composing emails with Vim

Rand Pritelrohm via Mutt-users <[email protected]> Wed, 26 Nov 2025 16:07:21 +0100
Newsgroups gmane.mail.mutt.user
Message-ID <aScXqQO_MoIhgHMf@RayPrit>
On 2025-11-26 15:47:00, Nicola Pinna via Mutt-users wrote:

> Dear mutt users,
> As many MUAs do not properly increase quote levels while replying to
> emails I would like, in some cases, to select part of the text and
> increase the quote level in Vim. 
> Something similar I do to format a text to the right number of colums by
> selecting the text (Visual mode in Vim) and simply use the "gq"
> argument. 
> Would it be possible to do something similar and add at the beginning of
> each selected line a "> ".
> I know that this is not strictly mutt related, but I am sure that many
> mutt users should be also annoied by MUAs not increasing the quote
> level. Mutt can so nicely color each quote level differently to improve
> the readability of emails.
> Best wishes and thanks for the tips,
> Nicola

Hi,

What I do with (n)vi(m) :

1. move the cursor to the beginning of the block
2. mark the position:
    ma
3. move the cursor to the end of the block
4. insert the quote character
    :'a,.s/^/>/                                                                                                                                                                                                 

Hope it helps.

Rand

PS: sorry for the mp reply