Skip to main content
improved answer
Source Link

A user in a Telegram group dedicated to VIM showed me a very good solution:

:nnoremap <leader>. :normal .<cr>

this remaps .<leader>. to allow a prefix with repeat count. In my case is mapped to the default value \ So I just type say 10\. and it repeats cgn 10 times.

It even works in Eclipse's Vrapper.

But if anyone has a better solution I'd like to hear.

A user in a Telegram group dedicated to VIM showed me a very good solution:

:nnoremap <leader>. :normal .<cr>

this remaps . to allow a prefix with repeat count. In my case is mapped to the default value \ So I just type say 10\. and it repeats cgn 10 times.

It even works in Eclipse's Vrapper.

But if anyone has a better solution I'd like to hear.

A user in a Telegram group dedicated to VIM showed me a very good solution:

:nnoremap <leader>. :normal .<cr>

this remaps <leader>. to allow a prefix with repeat count. In my case is mapped to the default value \ So I just type say 10\. and it repeats cgn 10 times.

It even works in Eclipse's Vrapper.

But if anyone has a better solution I'd like to hear.

added 6 characters in body
Source Link
D. Ben Knoble
  • 27.7k
  • 3
  • 31
  • 68

A user in a Telegram group dedicated to VIM showed me a very good solution:

:nnoremap <leader>. :normal .<cr>

this remaps . to allow a prefix with repeat count. In my case is mapped to the default value
 \ So I just type say 10.10\. and it repeats cgncgn 10 times.

It even works in Eclipse's Vrapper.

But if anyone has a better solution I'd like to hear.

A user in a Telegram group dedicated to VIM showed me a very good solution:

:nnoremap <leader>. :normal .<cr>

this remaps . to allow a prefix with repeat count. In my case is mapped to the default value
  So I just type say 10. and it repeats cgn 10 times.

It even works in Eclipse's Vrapper.

But if anyone has a better solution I'd like to hear.

A user in a Telegram group dedicated to VIM showed me a very good solution:

:nnoremap <leader>. :normal .<cr>

this remaps . to allow a prefix with repeat count. In my case is mapped to the default value \ So I just type say 10\. and it repeats cgn 10 times.

It even works in Eclipse's Vrapper.

But if anyone has a better solution I'd like to hear.

Source Link

A user in a Telegram group dedicated to VIM showed me a very good solution:

:nnoremap <leader>. :normal .<cr>

this remaps . to allow a prefix with repeat count. In my case is mapped to the default value
So I just type say 10. and it repeats cgn 10 times.

It even works in Eclipse's Vrapper.

But if anyone has a better solution I'd like to hear.