Skip to main content
added 63 characters in body
Source Link
Maxim Kim
  • 13.9k
  • 2
  • 20
  • 48

You can bind some keys in insert mode to move to the next word like vim-rsi plugin does making vim readline binding aware or use built-in arrow keys. This would be dot repeatable.

Or you can RWed<C-o>/11<CR>12 to replace Tue to Wed, goto normal mode for a single command, search for 11 and continue replacing 11 to 12.

For your example though I would just go for cwWed<ESC><C-a> -- change word Tue to Wed and increase next number by 1. But that is not dot repeatable.

You can bind some keys in insert mode to move to the next word like vim-rsi plugin does making vim readline binding aware or use built-in arrow keys.

Or you can RWed<C-o>/11<CR>12 to replace Tue to Wed, goto normal mode for a single command, search for 11 and continue replacing 11 to 12.

For your example though I would just go for cwWed<ESC><C-a> -- change word Tue to Wed and increase next number by 1.

You can bind some keys in insert mode to move to the next word like vim-rsi plugin does making vim readline binding aware or use built-in arrow keys. This would be dot repeatable.

Or you can RWed<C-o>/11<CR>12 to replace Tue to Wed, goto normal mode for a single command, search for 11 and continue replacing 11 to 12.

For your example though I would just go for cwWed<ESC><C-a> -- change word Tue to Wed and increase next number by 1. But that is not dot repeatable.

Source Link
Maxim Kim
  • 13.9k
  • 2
  • 20
  • 48

You can bind some keys in insert mode to move to the next word like vim-rsi plugin does making vim readline binding aware or use built-in arrow keys.

Or you can RWed<C-o>/11<CR>12 to replace Tue to Wed, goto normal mode for a single command, search for 11 and continue replacing 11 to 12.

For your example though I would just go for cwWed<ESC><C-a> -- change word Tue to Wed and increase next number by 1.