diff options
| author | Brian Leung <29217594+leungbk@users.noreply.github.com> | 2023-12-12 13:16:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-12 22:16:31 +0100 |
| commit | 7e5403c3eae12758315f66dfb146d31ec45ea2d4 (patch) | |
| tree | a74f149f9584ed49abddd25779bd9313ffc24baa | |
| parent | c4f95fd9ec284a8284405f84102bfdb74f0ee22f (diff) | |
Assign :jump to evil-{next-close,previous-open}-{brace,paren} (#1844)
| -rw-r--r-- | evil-commands.el | 4 |
1 files changed, 4 insertions, 0 deletions
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)) |
