Issue #122 resolved

Text marks [ and ] (first and last character of previously changed or yanked text)

Christoph Lange
created an issue

Here is another useful vim feature that I'm missing in evil, citing from the vim help:

'[ `[ To the first character of the previously changed or yanked text. {not in Vi}

'] `] To the last character of the previously changed or yanked text. {not in Vi}

There is a partial workaround: C-x C-x (exchange-point-and-mark) jumps to the "other" end of a text that was just yanked. But it puts evil into visual-mode. I often need to insert or change text at the "other" end, so I first need to quit visual mode.

Comments (2)

  1. Frank Fischer repo owner

    Set marks `[ and `] when pasting text

    The evil paste commands `evil-past-after' and `evil-paste-before' set these marks for normal paste. In the case of linewise or block paste the marks are set in the corresponding yank handlers. This closes issue #122.

    Wiki macro error: Changeset 1fca58f61fa8 not found.

  2. Log in to comment