mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-08 04:54:46 +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' |
|
\ if expand('%') ==# '' && &previewwindow && pumvisible() && getbufvar('#', '&omnifunc') ==# 'rhubarb#omnifunc' |
|
||||||
\ setlocal nolist linebreak filetype=markdown |
|
\ setlocal nolist linebreak filetype=markdown |
|
||||||
\ endif
|
\ endif
|
||||||
|
autocmd BufNewFile,BufRead *.git/{PULLREQ_EDIT,ISSUE_EDIT,RELEASE_EDIT}MSG set ft=gitcommit
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
if !exists('g:fugitive_browse_handlers')
|
if !exists('g:fugitive_browse_handlers')
|
||||||
|
|||||||
Reference in New Issue
Block a user