From 907c3c5181029c4558ae7b235a9842aa2725908b Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Mon, 4 Dec 2023 06:47:30 -0800 Subject: [PATCH] Assign :jump to evil-{next-close,previous-open}-{brace,paren} This is how Vim behaves. --- evil-commands.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/evil-commands.el b/evil-commands.el index 2198a0c4..e7fb345d 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))