Question

I am getting this TCL error

ERROR: missing close-brace: possible unbalanced brace in comment

and have no idea where the unbalanced brace may be. Could you please suggest some way of finding it? Maybe a program which will check braces in some files and show the place where is it. I am using vim. It would be great if vim could show this kind of things.

Vim version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Mar 14 2012 14:58:45)

The error is in tcl source files. I am not using any vim plugin.

Was it helpful?

Solution

By default % (in normal mode) should jump to the closing/opening brace or bracket when your cursor is on a brace or bracket.

So you could manually try out to find where it is, but it can be rather inefficient if the file is big.

Don't forget that with /( and then n you should be able to quickly jump from brace to brace.

Vim should have a default tcl syntax file installed by default, so if it not already the case, you should add in your .vimrc

syntax on
filetype plugin indent on
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top