Skip to main content
deleted 117 characters in body
Source Link
filbranden
  • 29.9k
  • 5
  • 28
  • 73

No mapping necessary!

Vim has the & command& command which just repeats the last substitution. The same way as . repeats the last command, I can move to the next true and simply hit & which will apply again the last substitution. Neat and simple.

I found out by googling “vi repeat last substitution” which yielded this SO postthis SO post as the first result.

No mapping necessary!

Vim has the & command which just repeats the last substitution. The same way as . repeats the last command, I can move to the next true and simply hit & which will apply again the last substitution. Neat and simple.

I found out by googling “vi repeat last substitution” which yielded this SO post as the first result.

No mapping necessary!

Vim has the & command which just repeats the last substitution. The same way as . repeats the last command, I can move to the next true and simply hit & which will apply again the last substitution. Neat and simple.

I found out by googling “vi repeat last substitution” which yielded this SO post as the first result.

deleted 50 characters in body
Source Link
D. Ben Knoble
  • 27.7k
  • 3
  • 31
  • 68

Holy crap I finally found out, and I don't need aNo mapping. necessary!

Vim Vim has the & command which just repeats the last substitution. The same way as . repeats the last command, I can move to the next true and simply hit & which will apply again the last substitution...Neat Neat and simple.

I finally found out by googling

vi repeat last substitution

which “vi repeat last substitution” which yielded this SO post as the first result https://stackoverflow.com/questions/382155/how-to-repeat-a-command-with-substitution-in-vim#:~:text=You%20simply%20hit%20the%20.,hit%20.%20to%20do%20it%20again.

Apologies.

Holy crap I finally found out, and I don't need a mapping.

Vim has the & command which just repeats the last substitution. The same way as . repeats the last command, I can move to the next true and simply hit & which will apply again the last substitution...Neat and simple.

I finally found out by googling

vi repeat last substitution

which yielded as first result https://stackoverflow.com/questions/382155/how-to-repeat-a-command-with-substitution-in-vim#:~:text=You%20simply%20hit%20the%20.,hit%20.%20to%20do%20it%20again.

Apologies.

No mapping necessary!

Vim has the & command which just repeats the last substitution. The same way as . repeats the last command, I can move to the next true and simply hit & which will apply again the last substitution. Neat and simple.

I found out by googling “vi repeat last substitution” which yielded this SO post as the first result.

added 207 characters in body
Source Link

Holy crap I finally found out, and I don't need a mapping.

Vim has the & command which just repeats the last substitution. The magic search keyword wassame way as . repeats the last command, I can move to the next true and simply hit & which will apply again the last substitution...Neat and simple.

I finally found out by googling

vi repeat last substitution

which yielded as first result https://stackoverflow.com/questions/382155/how-to-repeat-a-command-with-substitution-in-vim#:~:text=You%20simply%20hit%20the%20.,hit%20.%20to%20do%20it%20again.

So & is what I wanted.

Apologies.

Holy crap I finally found out, and I don't need a mapping.

The magic search keyword was

vi repeat last substitution

which yielded as first result https://stackoverflow.com/questions/382155/how-to-repeat-a-command-with-substitution-in-vim#:~:text=You%20simply%20hit%20the%20.,hit%20.%20to%20do%20it%20again.

So & is what I wanted.

Apologies.

Holy crap I finally found out, and I don't need a mapping.

Vim has the & command which just repeats the last substitution. The same way as . repeats the last command, I can move to the next true and simply hit & which will apply again the last substitution...Neat and simple.

I finally found out by googling

vi repeat last substitution

which yielded as first result https://stackoverflow.com/questions/382155/how-to-repeat-a-command-with-substitution-in-vim#:~:text=You%20simply%20hit%20the%20.,hit%20.%20to%20do%20it%20again.

Apologies.

Source Link
Loading