Hi,
Suresh Govindachar wrote:
> Jürgen Krämer wrote:
>
> > I don't see a place in the help files where % is documented to
> > skip comments. You can only force it to skip strings by removing
> > % from cpoptions (see ":help cpo-%").
>
> In the steps I gave to reproduce the bug, adding the following:
>
> :set cpo-=%
>
> does not make %-jumping skip the { inside comments. So it is a
> bug in Vim.
no, it is not. % in cpoption only affects the skipping of strings -- if
it is included strings that are surrounded by "s are not treated
specially, thus with the cursor on the opening paren of
Test("---)---")
% will move the cursor to the closing paren inside the string. Nowhere
in the documentation it is said that the behaviour of % with regard to
comments can be changed.
Regards,
Jürgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)