 | | From: | Jusuf | | Subject: | [vim] :help % | | Date: | 31 Dec 2004 00:56:53 GMT |
|
|
 | void foo() { /* } */ }
When positioning the cursor on the opening bracket '{', the motion command '%' is supposed to jump to closing bracket of the function. Instead it jumps to the closing bracket contained within the comment block. OTOH:
void foo() { string s = " } "; }
doesn't generate this bug. Tis a bug, right? Seems to be a minor thing concerning the syntax file. (won't debug the syntax file, though. Vim syntax files give me the creeps ;) just kiddin)
Vim 6.3 on Linux
|
|
 | | From: | Mikolaj Machowski | | Subject: | Re: [vim] :help % | | Date: | 31 Dec 2004 17:24:10 GMT |
|
|
 | Jusuf scripsit: > doesn't generate this bug. Tis a bug, right? Seems to be a minor > thing concerning the syntax file. (won't debug the syntax file, > though. Vim syntax files give me the creeps ;) just kiddin) > > Vim 6.3 on Linux
Can reproduce on Vim 7.0aa and this is not issue of syntax file.
Reported to vim-dev list.
m. -- LaTeX + Vim = http://vim-latex.sourceforge.net/ Vim Universal Templates: http://vim.sf.net/script.php?script_id=1078 vim.pl - http://skawina.eu.org/mikolaj CLEWN - http://clewn.sf.net
|
|
 | | From: | Jusuf | | Subject: | Re: [vim] :help % | | Date: | 31 Dec 2004 17:58:33 GMT |
|
|
 | * Mikolaj Machowski wrote:
Hi, Mikolaj
> Jusuf scripsit: >> doesn't generate this bug. Tis a bug, right? Seems to be a minor >> thing concerning the syntax file. (won't debug the syntax file, >> though. Vim syntax files give me the creeps ;) just kiddin) >> >> Vim 6.3 on Linux > > Can reproduce on Vim 7.0aa and this is not issue of syntax file.
"this is not issue of syntax file" Ough? Please, share your wisdom. Why do you thinks so? What else could it be?
> Reported to vim-dev list.
Thank you. Very strange. Keep me/us posted. Very interesting.
|
|
 | | From: | Mikolaj Machowski | | Subject: | Re: [vim] :help % | | Date: | 1 Jan 2005 13:41:27 GMT |
|
|
 | Jusuf scripsit: > * Mikolaj Machowski wrote: > > Hi, Mikolaj > >> Jusuf scripsit: >>> doesn't generate this bug. Tis a bug, right? Seems to be a minor >>> thing concerning the syntax file. (won't debug the syntax file, >>> though. Vim syntax files give me the creeps ;) just kiddin) >>> >>> Vim 6.3 on Linux >> >> Can reproduce on Vim 7.0aa and this is not issue of syntax file. > > "this is not issue of syntax file" > Ough? Please, share your wisdom. Why do you thinks so? What else > could it be?
Parens matching is done internally in Vim. > >> Reported to vim-dev list. > > Thank you. > Very strange. Keep me/us posted. Very interesting.
Response from Bram Moolenaar: ------------------- This is intentional. I sometimes use a } in comments to balance a { in an #ifdef.
Note that the '%' flag in 'cpoptions' changes how it works for strings.
If you use the matchit plugin you can configure how it works. -------------------
m. -- LaTeX + Vim = http://vim-latex.sourceforge.net/ Vim Universal Templates: http://vim.sf.net/script.php?script_id=1078 vim.pl - http://skawina.eu.org/mikolaj CLEWN - http://clewn.sf.net
|
|
 | | From: | Mikolaj Machowski | | Subject: | Re: [vim] :help % | | Date: | 31 Dec 2004 17:24:24 GMT |
|
|
 | Jusuf scripsit: > > void foo() > { > /* } */ > } > > When positioning the cursor on the opening bracket '{', the motion > command '%' is supposed to jump to closing bracket of the function. > Instead it jumps to the closing bracket contained within the comment > block. OTOH: > > void foo() > { > string s = " } "; > } > > doesn't generate this bug. Tis a bug, right? Seems to be a minor > thing concerning the syntax file. (won't debug the syntax file, > though. Vim syntax files give me the creeps ;) just kiddin) > > Vim 6.3 on Linux
|
|