search

Home  >  Q&A  >  body text

How to modify the default storage register of dd in vim

Like the question, how to set the dd register to register 3?

我想大声告诉你我想大声告诉你2778 days ago681

reply all(1)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-16 16:40:13

    noremap dd <esc>:let @p=@"<cr>dd:let @3=@"<cr>:let @"=@p<cr>

    p.s. Side effect: The p register is occupied.

    reply
    0
  • Cancelreply