Ⅰ. 插件描述
Block-breaking game in vim 8.0Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'johngrib/vim-game-code-break'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'johngrib/vim-game-code-break'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'johngrib/vim-game-code-break'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/johngrib/vim-game-code-break
Ⅳ. 文档说明
# VimGameCodeBreak

How to play
- open your code or text file in Vim
:VimGameCodeBreakto Start
| h | l | space | ` | ] | [ | q | Q |
|---|---|---|---|---|---|---|---|
| ← | → | new ball | cheat key | GOD mode | human mode | end game | quit & close game |
Setting
If you want to play with more than three balls, you can modify the following:
" .vimrc
let g:vim_game_code_break_item_limit = 4 " default value is 2WARNING: Too many balls can slow down the game or cause bugs.
I recommend the default value : 2
If the game speed is too slow, try:syntax offbefore starting the game.
Installation
VimPlug
Place this in your .vimrc:
Plug 'johngrib/vim-game-code-break'
Then run the following in Vim:
:source %
:PlugInstall