Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Vim easymotion match square and round brackets

Open karambaq opened this issue 6 years ago • 7 comments

How to modify "vim.easymotionJumpToAnywhereRegex": \\b[A-Za-z0-9]|[A-Za-z0-9]\\b|_.|#.|[a-z][A-Z] to match square and round brackets?

Thank you!

karambaq avatar Feb 11 '19 18:02 karambaq

I also have wondered how in the world to do this, and have not discovered a solution, no matter how I change the regex.

asilvadesigns avatar Feb 12 '19 14:02 asilvadesigns

Do like this: "vim.easymotionJumpToAnywhereRegex": "[\\[\\]\\(\\)]",

Now I have a question: is there any way I can make multiple regex maps? The example above only affects \\j, but I'd like to have multiple specific search patterns.

ghost avatar Feb 18 '19 17:02 ghost

@felipeMarconWD TaskQueue: Error running task. Failed to handle key=). Invalid regular expression: /)/: Unmatched ')'.

karambaq avatar Mar 10 '19 19:03 karambaq

It works for me. Though I've been using the regex to find the last character of each line, ".$".

Untitled

ghost avatar Mar 10 '19 19:03 ghost

@felipeMarconWD Can you send your config as file?

karambaq avatar Mar 10 '19 19:03 karambaq

any news on this?

karambaq avatar Jul 11 '19 14:07 karambaq

How to modify "vim.easymotionJumpToAnywhereRegex": \\b[A-Za-z0-9]|[A-Za-z0-9]\\b|_.|#.|[a-z][A-Z] to match square and round brackets?

Thank you!

try this "vim.easymotionJumpToAnywhereRegex": "\\b[A-Za-z0-9]|[A-Za-z0-9]\\b|_.|#.|[a-z][A-Z]|\\[|\\]|\\(|\\)|\\{|\\}",

RayneScofield avatar Jul 20 '24 10:07 RayneScofield