Issue 180: https://code.google.com/p/vim/issues/detail?id=180

If `autocmd` command calls map commands such as `nnoremap`, they are not 
highlighted correctly.

Test code:

    autocmd FileType <buffer> help nnoremap <silent> <buffer> <BS> <C-t>

`nnoremap` does not highlight as `Statement` highlight group because 
`vimIsCommand` highlight group does not contain `vimMap`. To highlight 
correctly, `syntax/vim.vim` needs to fix two lines.

The attached patch seems to work fine on Vim 7.4.094 (64bit).

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
--- vim_old.vim    Wed Nov 20 07:20:47 2013
+++ vim_new.vim    Wed Nov 20 07:21:22 2013
@@ -103,7 +103,7 @@

 " All vimCommands are contained by vimIsCommands. {{{2
 syn match vimCmdSep    "[:|]\+"    skipwhite nextgroup=vimAddress,vimAutoCmd,vimCommand,vimExtCmd,vimFilter,vimLet,vimMap,vimMark,vimSet,vimSyntax,vimUserCmd
-syn match vimIsCommand    "\<\h\w*\>"    contains=vimCommand
+syn match vimIsCommand    "\<\h\w*\>"    contains=vimCommand,vimMap
 syn match vimVar        contained    "\<\h[a-zA-Z0-9#_]*\>"
 syn match vimVar        "\<[bwglsav]:\h[a-zA-Z0-9#_]*\>"
 syn match vimFBVar      contained   "\<[bwglsav]:\h[a-zA-Z0-9#_]*\>"
@@ -474,7 +474,7 @@

 " Additional IsCommand, here by reasons of precedence {{{2
 " ====================
-syn match    vimIsCommand    "<Bar>\s*\a\+"    transparent contains=vimCommand,vimNotation
+syn match    vimIsCommand    "<Bar>\s*\a\+"    transparent contains=vimCommand,vimMap,vimNotation

 " Highlighting {{{2
 " ============

Raspunde prin e-mail lui