search

Home  >  Q&A  >  body text

vim copy line above cursor?

Assume that the cursor is on line 10. In normal mode,
5yy will copy the 5 lines below the cursor, namely lines 10, 11, 12, 13, and 14.

How to copy the 5 lines above the cursor, namely lines 10, 9, 8, 7, and 6?
Can it be completed in normal mode without switching to ex mode?

给我你的怀抱给我你的怀抱2745 days ago1043

reply all(2)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-06-13 09:26:22

    yNk, previousNrow

    reply
    0
  • 世界只因有你

    世界只因有你2017-06-13 09:26:22

    5yk or 5y上

    reply
    0
  • Cancelreply