Thomson
Thomson

Reputation: 21615

Jumping to unpaired parenthesis in Vim?

As Vim highlighted unpaired parenthesis (in red background in my windows which is considered as syntax error), is there a way to jump to next/previous unpaired parenthesis directly? This would include characters like {}[]()

Upvotes: 1

Views: 137

Answers (1)

R Sahu
R Sahu

Reputation: 206567

You can use

[(

to go to the previous (

You can use

])

to go to the next )

You can use

[{

to go to the previous {

You can use

]}

to go to the next }

Don't know how to go the previous [ or the next ]

Use :help [( to get online help on these commands.

Upvotes: 2

Related Questions