Skip to content
Discussion options

You must be logged in to vote

Yeah, you can't unmap these as they aren't maps, but built in Vim commands. ( is a built in motion for Normal and Visual mode, and can't be unmapped. sethandler doesn't work either, because that's a mechanism to solve conflicts with IDE shortcuts, and ( isn't an IDE shortcut, it's just a character that can be typed.

But, there is something you can do. ( is a Vim command in Normal and Visual, but not in Select mode. So you could switch your Visual selection to Select mode (<C-G>) and then type any character as a normal character. Hitting ( now would cause the IDE to surround the selection.

And if you can do it manually, you can set up a mapping for it too. So you could use something like:

x…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@citizenmatt
Comment options

Answer selected by CaliInn-Li
@CaliInn-Li
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants