Created
July 6, 2022 20:43
-
-
Save Gavinok/818e195332849dc1f581db49a0dbe176 to your computer and use it in GitHub Desktop.
Make the ci( function like it does in vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun my/jump-to-par (&rest args) | |
(when (< (save-excursion | |
(search-forward "(")) | |
(save-excursion | |
(search-forward ")"))) | |
(search-forward "("))) | |
(advice-add 'evil-inner-paren :before #'my/jump-to-par) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment