1
0
mirror of https://github.com/pcvolkmer/vim-fugistate.git synced 2025-07-01 11:22:54 +00:00

Initial import

This commit is contained in:
2022-01-09 06:43:55 +01:00
commit ed8a9ecda5
4 changed files with 122 additions and 0 deletions

22
plugin/fugistate.vim Normal file
View File

@ -0,0 +1,22 @@
" 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