On 2025-11-26 15:47, Mutt list wrote:
> add at the beginning of each selected line a "> ".

You can enter blockwise-visual mode (control+v) at the beginning of the
block/line, traverse down to the end of the desired make-this-a-quote
(so you should now have the first column of each line highlighted
visually), they type "I" (capital-eye to insert at the beginning of the
block, `:help v_b_I`), followed by the "> " that you want to insert to
add the quoting.

Alternatlively, you can use ex-mode commands like

  :'<,'>s/^/> /

(the trailing slash is optional, but there to make the space more
visible)

If it's something you do frequently, you could create a mapping like

  vnoremap <f7> :s/^/> /<cr>

so when you have a range of lines highlighted, such as with

  vip

you can hit <f7> to quickly comment the range of lines.

-tkc
-- 





Reply via email to