3

Is it there any way to yank in the search command (after press "/") in evil-mode?

1 Answer 1

1
(defadvice evil-search-forward (after evil-search-forward-after-hack activate)
  (if (and isearch-string
           (> (length isearch-string) 0)
           (not (string= isearch-string (format "%s" (car kill-ring)))))
           (kill-new isearch-string)))

BTW, the regex is also automatically inserted into evil-search-forward-history.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.