Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stay in visual mode while jumping through editor commands #860

Open
wnim opened this issue Jan 16, 2023 · 0 comments
Open

Stay in visual mode while jumping through editor commands #860

wnim opened this issue Jan 16, 2023 · 0 comments

Comments

@wnim
Copy link

wnim commented Jan 16, 2023

Hi,

So I noticed that '%' jumps between parentheses and block comments, but it's impossible to add custom match pairs.
However, other plugins already implement their own actions for jumping through different pairs.
For example, in systemverilog, I can jump from 'begin' to 'end', from 'task' to 'endtask' etc.
I thought to add the following to vrapperrc
eclipseaction match_pair ro.amiq.vlogdt.ui.editor.GoToPairBracket
nmap % :match_pair<enter>
vmap % :match_pair<enter>

But even though the jump works, it unfortunately exists visual mode.

I tested this in Java as well to make sure it's not some systemverilog plugin issue (which isn't popular like Java).

Alternatively, if it's possible to add custom pairs, I can also go for that solution, and abandon the systemverilog plugin action for "GoToPairBracket".

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant