Skip to main content
added 22 characters in body
Source Link
Mass
  • 14.4k
  • 1
  • 23
  • 48

You can repeat the last inserted text in insert mode using CTRL-R . or CTRL-A

But you need to leave insert mode to complete the change. Type Enter insert mode and type

table[row][col]

Then leave insert mode and re-enter using Esca and type the rest of the line before the repeated part

table[row][col] = std::max(

Finally, type CTRL-R . (or CTRL-A)

table[row][col] = std::max(table[row][col]

and finish the line.

A shortcut for the above is CTRL-A.

You can repeat the last inserted text in insert mode using CTRL-R .

But you need to leave insert mode to complete the change. Type

table[row][col]

Then leave insert mode and re-enter using Esca and type the rest of the line before the repeated part

table[row][col] = std::max(

Finally, type CTRL-R .

table[row][col] = std::max(table[row][col]

and finish the line.

A shortcut for the above is CTRL-A.

You can repeat the last inserted text in insert mode using CTRL-R . or CTRL-A

But you need to leave insert mode to complete the change. Enter insert mode and type

table[row][col]

Then leave insert mode and re-enter using Esca and type the rest of the line before the repeated part

table[row][col] = std::max(

Finally, type CTRL-R . (or CTRL-A)

table[row][col] = std::max(table[row][col]

and finish the line.

Add documentation links
Source Link
D. Ben Knoble
  • 27.7k
  • 3
  • 31
  • 68

You can repeat the last inserted text in insert mode using CTRL-R .

*i_CTRL-R*
CTRL-R {0-9a-z"%#*+:.-=}

Insert the contents of a register. Between typing CTRL-R and the second character, " will be displayed to indicate that you are expected to enter the name of a register. The text is inserted as if you typed it, but mappings and abbreviations are not used …

  • . the last inserted text

But you need to leave insert mode to complete the change. Type

table[row][col]

Then leave insert mode and re-enter using Esca and type the rest of the line before the repeated part

table[row][col] = std::max(

Finally, type CTRL-R .

table[row][col] = std::max(table[row][col]

and finish the line.

A shortcut for the above is CTRL-A.

*i_CTRL-A*
CTRL-A

Insert previously inserted text. {not in Vi}

You can repeat the last inserted text in insert mode using CTRL-R .

*i_CTRL-R*
CTRL-R {0-9a-z"%#*+:.-=}

Insert the contents of a register. Between typing CTRL-R and the second character, " will be displayed to indicate that you are expected to enter the name of a register. The text is inserted as if you typed it, but mappings and abbreviations are not used …

  • . the last inserted text

But you need to leave insert mode to complete the change. Type

table[row][col]

Then leave insert mode and re-enter using Esca and type the rest of the line before the repeated part

table[row][col] = std::max(

Finally, type CTRL-R .

table[row][col] = std::max(table[row][col]

and finish the line.

A shortcut for the above is CTRL-A.

*i_CTRL-A*
CTRL-A

Insert previously inserted text. {not in Vi}

You can repeat the last inserted text in insert mode using CTRL-R .

But you need to leave insert mode to complete the change. Type

table[row][col]

Then leave insert mode and re-enter using Esca and type the rest of the line before the repeated part

table[row][col] = std::max(

Finally, type CTRL-R .

table[row][col] = std::max(table[row][col]

and finish the line.

A shortcut for the above is CTRL-A.

You can repeat the last inserted text in insert mode using <c-r>., butCTRL-R .

*i_CTRL-R*
CTRL-R {0-9a-z"%#*+:.-=}

Insert the contents of a register. Between typing CTRL-R and the second character, " will be displayed to indicate that you are expected to enter the name of a register. The text is inserted as if you typed it, but mappings and abbreviations are not used …

  • . the last inserted text

But you need to leave insert mode to complete the change. Type

table[row][col]

Then leave insert mode and re-enter using <esc>aEsca and type the rest of the line before the repeated part

table[row][col] = std::max(

Finally, type <c-r>.CTRL-R .

table[row][col] = std::max(table[row][col]

and finish the line.

A shortcut for the above is CTRL-A.

*i_CTRL-A*
CTRL-A

Insert previously inserted text. {not in Vi}

You can repeat the last inserted text in insert mode using <c-r>., but you need to leave insert mode to complete the change. Type

table[row][col]

Then leave insert mode and re-enter using <esc>a and type the rest of the line before the repeated part

table[row][col] = std::max(

Finally, type <c-r>.

table[row][col] = std::max(table[row][col]

and finish the line.

You can repeat the last inserted text in insert mode using CTRL-R .

*i_CTRL-R*
CTRL-R {0-9a-z"%#*+:.-=}

Insert the contents of a register. Between typing CTRL-R and the second character, " will be displayed to indicate that you are expected to enter the name of a register. The text is inserted as if you typed it, but mappings and abbreviations are not used …

  • . the last inserted text

But you need to leave insert mode to complete the change. Type

table[row][col]

Then leave insert mode and re-enter using Esca and type the rest of the line before the repeated part

table[row][col] = std::max(

Finally, type CTRL-R .

table[row][col] = std::max(table[row][col]

and finish the line.

A shortcut for the above is CTRL-A.

*i_CTRL-A*
CTRL-A

Insert previously inserted text. {not in Vi}

Source Link
Mass
  • 14.4k
  • 1
  • 23
  • 48
Loading