Vim's Count позволяет вам повторять оператор или команду несколько раз. Например, если вы находитесь на первый движок этой линии:
Hello world, how are you?
А вы тип dw
вы будете иметь
world, how are you?
Вместо того, чтобы вводить dwdwdwdw
, вы можете просто ввести 4dw
или d4w
и вы у
are you?
Более конкретно в вашем примере, вы можете ввести что-то вроде 5ihello<esc>
в d это вставит
hellohellohellohellohello
Как сказал Кевин в комментарии, вы можете прочитать больше в помощи Документах с :h count
, который говорит:
*count* *[count]*
[count] An optional number that may precede the command to multiply
or iterate the command. If no number is given, a count of one
is used, unless otherwise noted. Note that in this manual the
[count] is not mentioned in the description of the command,
but only in the explanation. This was done to make the
commands easier to look up. If the 'showcmd' option is on,
the (partially) entered count is shown at the bottom of the
window. You can use <Del> to erase the last digit (|N<Del>|).
Попробуйте [': help count'] (http://vimdoc.sourceforge.net/htmldoc/intro.html# [count]). – Kevin
@Kevin Я глуп, но я пропустил его. Большое спасибо –