Ⅰ. 插件描述
Use H,J,K,L to explore mazeⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/hjkl'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/hjkl'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/hjkl'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/HJKL
Ⅳ. 文档说明
Lots of beginners do not like to use vim's h,j,k,l key to move concur, so I made this game, hopefully can help beginners get used to h,j,k and l.
This is a maze exploring game.
A 15*15 maze is randomly generated, and user('@') need to go to target position('X').
Only h,j,k,l are allowed for controlling.
Type 'q' twice to quit the game.
Maximize the window before starting the game to get better view.
Type :HJKL to start a new game.
Want more challenge, try konami code(kkjjhlhlba)
Future plan:
- Better random number generator is needed. Current version sometimes leads to infinite loop when generating random maze.
- Need more challenging maze. Better maze construction algorithm is needed.
- More fancy features...