augroup GitCommitTemplates autocmd! autocmd BufNewFile,BufRead PULL_REQUEST_TEMPLATE,*.pr set filetype=pullrequest autocmd Filetype pullrequest :match GitCommitTemplateTag /<[^>]*>/ autocmd Filetype pullrequest :let @/ ='<[^>]*>' augroup END