1. Frank Fischer
  2. evil
Issue #302 resolved

:%s/foo/\=@a/g doesn't replace foo with register a

Sam Hasler
created an issue

In Vim search and replace \=@a is a reference to register a. It would be useful if this worked in evil

Comments (2)

  1. Frank Fischer repo owner

    Support \=@<char> to replace by register content (fix #302).

    \= is more general in Vim because it allows general commands to be executed. However, Evil does not support Vim's language but is based on Emacs Lisp (the , magic character can be used to replace by arbitrary Lisp code). Therefore Evil only supports a very restricted usage of \= namely \=@ to replace by register content.

    → <<cset 8dc6752bae6b>>

  2. Frank Fischer repo owner

    Support \=@<char> to replace by register content (fix #302).

    \= is more general in Vim because it allows general commands to be executed. However, Evil does not support Vim's language but is based on Emacs Lisp (the , magic character can be used to replace by arbitrary Lisp code). Therefore Evil only supports a very restricted usage of \= namely \=@ to replace by register content.

    → <<cset 8dc6752bae6b>>

  3. Log in to comment