blob: a6f776a6b231ec9167fd959f296f3278f704a1a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
" =============================================================================
" Filename: plugin/gitbranch.vim
" Author: itchyny
" License: MIT License
" Last Change: 2015/05/12 08:16:47.
" =============================================================================
if exists('g:loaded_gitbranch') || v:version < 700
finish
endif
let g:loaded_gitbranch = 1
let s:save_cpo = &cpo
set cpo&vim
augroup GitBranch
autocmd!
autocmd BufNewFile,BufReadPost * call gitbranch#detect(expand('<amatch>:p:h'))
autocmd BufEnter * call gitbranch#detect(expand('%:p:h'))
augroup END
let &cpo = s:save_cpo
unlet s:save_cpo
|