Ⅰ. 插件描述
A tool for viewing source code in a slide show fashion.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/slide-show'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/slide-show'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/slide-show'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/slide-show
Ⅳ. 文档说明
I often need to review others code to get a quick idea if the developers are doing the proper job. It's tedious when going through hundreds of files manually. I finally came up with this script, which you need to find/grep the interested files, and feed them to vim.
For example to review author Cary's source files:
In command line,
vim +"so ~/.vim/SlideShow.vim" grep -liR "Cary" * | grep -v .svn | grep ".java" | sort
In vim, press <Space> to start the slide show.