Wojciech Brański wrote:
Hi
With default vim setting the folowing code:
a)
void fun(){
...
b)
void fun()
{ ....
is folding as:
a)
+--- x lines: void fun() -------
...
b)
void fun()
+--- x lines: -------
....
Is there any possibility to treat both code statement same.
ie to fold both to figure:
void fun()
+--- x lines: -------
....
whatever its a) or b) code form.
This request involves re-writing syntax/c.vim. The folding currently
involved above is folding the block {...}. One would have to recognize
the beginning function declaration code as part of the folding block or
as a separate region. Given how function declarations can be quite
complex in both C and C++ (I'm guessing, admittedly), it seems likely
that doing such recognition isn't likely.
Regards,
Chip Campbell
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php