vim red code example Example 1: redo in vim Enter normal mode(press Esc) press ctrl + r Example 2: vim redo R (ctrl + r)