-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
More+Less present options with a (nice) highlighting so vim-man should too, here are some observations about the default vim man.vim syntax file.
- Default
man.vimissues:- A lot of double hyphen options are not matched
- Options in Synopsis and other sections are not matched (surrounded by
[]) - Options in the middle of other options description text are not matched
- Commas after options are included in the match
- (For implement this in
vim-man) Take into count:- Options are denoted by one or tho hyphens
- - If any alphanumerical symbol precedes the hyphen it's probably not an
Options but atwo-componentsword - Possible characters in an Option:
Upper and lower case letters,
numbers,-,_,?(See:Man manfor and example of the last one) - alone
-or--are commands too (common forread from stdin)
- Options are denoted by one or tho hyphens
- There is no special cases for man sections (?)
I'd like to know if I miss something or if something here is wrong; if this is correct an appropriate syntax match regex will do the job (?)
Metadata
Metadata
Assignees
Labels
No labels