mirror of
https://github.com/pcvolkmer/vim-fugistate.git
synced 2025-04-19 23:36:49 +00:00
27 lines
594 B
VimL
27 lines
594 B
VimL
" Filename: plugin/fugistate.vim
|
|
" Author: Paul-Christian Volkmer <code@pcvolkmer.de>
|
|
" License: MIT License
|
|
|
|
if exists('g:loaded_fugistate') || v:version < 800
|
|
finish
|
|
endif
|
|
let g:loaded_fugistate = 1
|
|
|
|
if ! exists('g:fugistate_expand_filename')
|
|
let g:fugistate_expand_filename = '%:t'
|
|
endif
|
|
|
|
augroup FugiState
|
|
autocmd!
|
|
autocmd BufEnter,BufWritePost,FocusGained * :call fugistate#update()
|
|
autocmd User FugitiveChanged :call fugistate#update()
|
|
augroup END
|
|
|
|
function! FugiState()
|
|
return fugistate#file()
|
|
endfunction
|
|
|
|
function! FugiStateGitDir()
|
|
return fugistate#gitdir()
|
|
endfunction
|