mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 20:24:29 +08:00
Treat files generated by hub(1) as gitcommits
- `.git/PULLREQ_EDITMSG` is generated by `hub pull-request`. - `.git/ISSUE_EDITMSG` is generated by `hub issue create`. - `.git/RELEASE_EDITMSG` is generated by `hub release create`.
This commit is contained in:
@@ -44,6 +44,7 @@ augroup rhubarb
|
||||
\ if expand('%') ==# '' && &previewwindow && pumvisible() && getbufvar('#', '&omnifunc') ==# 'rhubarb#omnifunc' |
|
||||
\ setlocal nolist linebreak filetype=markdown |
|
||||
\ endif
|
||||
autocmd BufNewFile,BufRead *.git/{PULLREQ_EDIT,ISSUE_EDIT,RELEASE_EDIT}MSG set ft=gitcommit
|
||||
augroup END
|
||||
|
||||
if !exists('g:fugitive_browse_handlers')
|
||||
|
||||
Reference in New Issue
Block a user