mirror of
https://github.com/pcvolkmer/vim-fugistate.git
synced 2025-04-19 15:26:50 +00:00
23 lines
536 B
VimL
23 lines
536 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#filename_status()
|
|
endfunction
|