>
> To check if the cursor is within a comment or string context:
>
> synIDattr(synID(line("."), col("."), 1), "name") =~? 'comment\|string'
>
> Syntax has to be enabled.Thanks, Gerald, this is exactly what I needed. Thanks also to the others, for useful hints. -- Peter
