On Mi, 26 Nov 2025, 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.

By default, Vim comes with the mail.vim filetype plugin, which let's you 
quickly quote a selected region using \q

Make sure you have

:filetype plugin on

set in your .vimrc file.

If this is enabled, you can quote (e.g. add a quote level) a visually 
selected region using the \q vmap.

See :e $VIMRUNTIME/ftplugin/mail.vim for more details.


regards,
Christian
-- 
Humor in the Court:
Q: ...and what did he do then?
A: He came home, and next morning he was dead.
Q: So when he woke up the next morning he was dead?

Reply via email to