On 2026-01-08, Enno (Vim Github Repository) wrote:

> Those who prefer predictable behavior use gw instead, which is almost always
> what was intended when gq is used. The latter is likely just better known as 
> it
> came first. Without formatprg/expr, what's the value provided by gq over gw ?
> So I'd rather argue for the opposite coupled with a recommendation of gw

No, gw is not a good replacement for gq because of the way that the
cursor is handled.

A value of gq over gw is that gqj can be executed repeatedly over
a range of lines to reformat them because after each operation, the
cursor is well-positioned for the next operation.  That is not true
for gw.

Regards,
Gary

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/20260111201931.GB14680%40phoenix.

Raspunde prin e-mail lui