undo and redo in vim code example
Example 1: redo in vim
Enter normal mode(press Esc)
press ctrl + r
Example 2: undo in vim
u -> undo
CTRL + r -> redo
Enter normal mode(press Esc)
press ctrl + r
u -> undo
CTRL + r -> redo