diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-02-25 14:47:03 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-02-25 14:47:03 +0300 |
commit | d16e82d468eb0d5bb1e662ac4812c0ca6fc0fc64 (patch) | |
tree | 6575864b75dc0c9de61b5d523e77dbcff785c998 /.vim/autoload/airline/extensions/vimagit.vim | |
parent | 69d47128244a06ee28e4b43191ef9216b04bce13 (diff) | |
download | vimrice-d16e82d468eb0d5bb1e662ac4812c0ca6fc0fc64.tar.gz vimrice-d16e82d468eb0d5bb1e662ac4812c0ca6fc0fc64.zip |
reorganized repo to be easier to use with GNU stow; added script to stow
Diffstat (limited to '.vim/autoload/airline/extensions/vimagit.vim')
-rw-r--r-- | .vim/autoload/airline/extensions/vimagit.vim | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/.vim/autoload/airline/extensions/vimagit.vim b/.vim/autoload/airline/extensions/vimagit.vim deleted file mode 100644 index 8c98ec9..0000000 --- a/.vim/autoload/airline/extensions/vimagit.vim +++ /dev/null @@ -1,34 +0,0 @@ -" MIT License. Copyright (c) 2016-2018 Jerome Reybert et al. -" vim: et ts=2 sts=2 sw=2 - -" This plugin replace the whole section_a when in vimagit buffer -scriptencoding utf-8 - -if !get(g:, 'loaded_magit', 0) - finish -endif - -function! airline#extensions#vimagit#init(ext) - call a:ext.add_statusline_func('airline#extensions#vimagit#apply') -endfunction - -function! airline#extensions#vimagit#get_mode() - if ( exists("*magit#get_current_mode") ) - return magit#get_current_mode() - else - if ( b:magit_current_commit_mode == '' ) - return "STAGING" - elseif ( b:magit_current_commit_mode == 'CC' ) - return "COMMIT" - elseif ( b:magit_current_commit_mode == 'CA' ) - return "AMEND" - else - return "???" - endif -endfunction - -function! airline#extensions#vimagit#apply(...) - if ( &filetype == 'magit' ) - let w:airline_section_a = '%{airline#extensions#vimagit#get_mode()}' - endif -endfunction |