From c86371258cb10a015cf151b84e04df4480569aff Mon Sep 17 00:00:00 2001 From: Raffaele Mancuso <54762742+raffaem@users.noreply.github.com> Date: Thu, 27 Oct 2022 01:43:50 +0200 Subject: [PATCH] docs(usr_05): update sentence about Nvim default behavior of Q (#20817) While the user guide correctly describes the mapping in Vim, the default behaviour in NeoVim seems to be the one described here. --- runtime/doc/usr_05.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/doc/usr_05.txt b/runtime/doc/usr_05.txt index 63714595eb..944eb1fc80 100644 --- a/runtime/doc/usr_05.txt +++ b/runtime/doc/usr_05.txt @@ -127,8 +127,8 @@ Display matches for a search pattern while you type. This defines a key mapping. More about that in the next section. This defines the "Q" command to do formatting with the "gq" operator. This is how -it worked before Vim 5.0. Otherwise the "Q" command starts Ex mode, but you -will not need it. +it worked before Vim 5.0. Otherwise the "Q" command repeats the last recorded +register. > vnoremap _g y:exe "grep /" .. escape(@", '\\/') .. "/ *.c *.h"