sbeam
sbeam

Reputation: 4892

vim : bounce to the nearest enclosing paren

say I have text such as

CREATE TABLE blah blah (
`id` int not null,
`xxxxxx` varchar(255),
PRIMARY KEY (`id`) )

and cursor is on the "xxxxxx" - what can I do to quickly jump to the opening "(" - or the closing one for that matter. I can use "F" but that only finds within the line.

Upvotes: 2

Views: 291

Answers (1)

Benoit
Benoit

Reputation: 79235

Two possibilities:

  • Use [( ; see :help [( for more detail.
  • Use ?( and ENTER. See :help ? for more detail.

Upvotes: 5

Related Questions