helix-vim icon indicating copy to clipboard operation
helix-vim copied to clipboard

multi-line yank / delete (d1d, d5d, y1y, y5y)

Open kallisti5 opened this issue 7 months ago • 0 comments

vi lets you chain together d with number of lines to delete + yank into the clipboard. I've been fiddling with this config but haven't been able to figure it out.

Any ideas if this is something we could add? Example key strokes:

Common usage

  • d1d (delete / yank 1 line)
  • y1y (yank 1 line)
  • d20d (delete / yank 20 lines)

Less common usage

  • d1w (delete / yank 1 word)
  • d1l (delete / yank 1 letter)

same applies for y as the command in most cases (y1w, y1l, etc)

kallisti5 avatar Nov 27 '23 17:11 kallisti5