Hi, list.
The command:
:so $VIMRUNTIME/ftplugin/man.vim
:Man 3 gets
And the command on my box returns the following section:
------------- %< ------------
NAME
fgets, gets - get a line from a stream
SYNOPSIS
#include <stdio.h>
char *
fgets(char *str, int size, FILE *stream);
char *
gets(char *str);
DESCRIPTION
The fgets() function reads at most size-1 characters from the given
stream and stores them in the string str. Reading stops when a newline
------------- %< ------------
Note, the 'DESCRIPTION' is not highlighted.
In the 'man.vim' syntax file, I found:
'end="^\u\+\s*$"he=e-12'
I wonder why the number 12 is used here?
The patch:
*** man.vim Tue Dec 25 19:50:57 2007
--- man.vim.orig Tue Dec 25 19:50:25 2007
***************
*** 36,42 ****
if getline(1) =~ '^[a-zA-Z_]\+([23])'
syntax include @cCode <sfile>:p:h/c.vim
syn match manCFuncDefinition display "\<\h\w*\>\s*("me=e-1 contained
! syn region manSynopsis start="^SYNOPSIS"hs=s+8 end="^\u\+\s*$" keepend
contains=manSectionHeading,@cCode,manCFuncDefinition
endif
--- 36,42 ----
if getline(1) =~ '^[a-zA-Z_]\+([23])'
syntax include @cCode <sfile>:p:h/c.vim
syn match manCFuncDefinition display "\<\h\w*\>\s*("me=e-1 contained
! syn region manSynopsis start="^SYNOPSIS"hs=s+8 end="^\u\+\s*$"he=e-12
keepend contains=manSectionHeading,@cCode,manCFuncDefinition
endif
--
Dasn
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---