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:
22
plugin/fugistate.vim
Normal file
22
plugin/fugistate.vim
Normal 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
|
Reference in New Issue
Block a user