From 7e5403c3eae12758315f66dfb146d31ec45ea2d4 Mon Sep 17 00:00:00 2001 From: Brian Leung <29217594+leungbk@users.noreply.github.com> Date: Tue, 12 Dec 2023 13:16:31 -0800 Subject: Assign :jump to evil-{next-close,previous-open}-{brace,paren} (#1844) --- evil-commands.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/evil-commands.el b/evil-commands.el index 2198a0c..e7fb345 100644 --- a/evil-commands.el +++ b/evil-commands.el @@ -571,11 +571,13 @@ and jump to the corresponding one." (evil-define-motion evil-previous-open-paren (count) "Go to COUNT previous unmatched \"(\"." + :jump t :type exclusive (evil-up-paren ?\( ?\) (- (or count 1)))) (evil-define-motion evil-next-close-paren (count) "Go to COUNT next unmatched \")\"." + :jump t :type exclusive (forward-char) (evil-up-paren ?\( ?\) (or count 1)) @@ -583,11 +585,13 @@ and jump to the corresponding one." (evil-define-motion evil-previous-open-brace (count) "Go to COUNT previous unmatched \"{\"." + :jump t :type exclusive (evil-up-paren ?{ ?} (- (or count 1)))) (evil-define-motion evil-next-close-brace (count) "Go to COUNT next unmatched \"}\"." + :jump t :type exclusive (forward-char) (evil-up-paren ?{ ?} (or count 1)) -- cgit v1.0