Ⅰ. 插件描述
See Git Blame information in the status bar for the currently selected line.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'zivyangll/git-blame-vim-the-thing-itself'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'zivyangll/git-blame-vim-the-thing-itself'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'zivyangll/git-blame-vim-the-thing-itself'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/zivyangll/git-blame.vim
Ⅳ. 文档说明
git-blame.vim
███╗ ███╗ █████╗ ████╗ █╗ ███╗ █╗ █╗█████╗ █╗ █╗ ███╗ █╗ █╗
█╬══█╗ ╚█╔╝ ╚═█╔═╝ █╔══█╗█║ █╬══█╗██╗██║█╔═══╝ █║ █║ ╚█╔╝ ██╗██║
█║ ╚╝ █║ █║ █║ █║█║ █║ █║█╔█╬█║█║ █║ █║ █║ █╔█╬█║
█║ █║ █║ █████╗████╬╝█║ █║ █║█║╚╝█║████╗ █║ █║ █║ █║╚╝█║
█║ ██╗ █║ █║ ╚════╝█╔══█╗█║ █████║█║ █║█╔══╝ ██╗ █║ █║ █║ █║ █║
█║ ╚█║ █║ █║ █║ █║█║ █╔══█║█║ █║█║ ██║ ╚█╗█╬╝ █║ █║ █║
╚███╬╝ ███╗ █║ ████╬╝█████╗█║ █║█║ █║█████╗ ╚═╝ ╚█╬╝ ███╗ █║ █║
╚══╝ ╚══╝ ╚╝ ╚═══╝ ╚════╝╚╝ ╚╝╚╝ ╚╝╚════╝ ╚╝ ╚══╝ ╚╝ ╚╝
See Git Blame information in the status bar for the currently selected line.
Installation
Simply Install
If you don't have a preferred installation method, I recommend
installing pathogen.vim, and
then simply copy and paste:
cd ~/.vim/bundle
git clone git@github.com:zivyangll/git-blame.vim.git
Using vim-plug:
Plug 'zivyangll/git-blame.vim'
Using Vundle
Plugin 'zivyangll/git-blame.vim'
Please setting bindings
You must push the map in your vimrc to avoid conflicts with other plugins you may have installed.:
nnoremap <Leader>s :<C-u>call gitblame#echo()<CR>
Quick start guide
just use <leader>s
Publish git-blame
tar zcvf git-blame.tar.gz git-blame.vim
upload: https://www.vim.org/scripts/script.php?script_id=5704
Self-Promotion
Like git-blame.vim? Follow the repository on
GitHub and vote for it on vim.org. And if
you're feeling especially charitable, follow GitHub.
Thanks
License
See MIT License.