![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://lemmy.ml/pictrs/image/Zr3DSFDxu9.png)
I don’t know why the motion didn’t work in Evil mode, but if the goal is deleting all invisible Unicode characters, I’d write a command like this:
(defun my/delete-invisibles-in-region (start end)
"Delete invisible characters in the region specified with START and END."
(interactive "r")
(save-excursion
(replace-regexp "\u200B\\|\u200C" "" nil start end))
;; (query-replace-regexp "\u200B\\|\u200C" "" nil start end))
(deactivate-mark))
Some applications can’t display some Unicode strings like s̵t̵r̵o̵k̵e̵, so replacing Markdown element like
~strike~
with Unicode equivalent (s̵t̵r̵o̵k̵e̵ ) may not be a good idea if you want portability. I opened your post in text editors and noticed that neovim-qt drops s̵t̵r̵o̵k̵e̵’s combining characters (issue on Github) and just displays stroke instead of s̵t̵r̵o̵k̵e̵; GUI Emacs with my font settings (Noto) doesn’t combine the characters and displayss-t-r-o-k-e-
(as I said, this may depends on font settings).