rubikscube.vim


Ⅰ. 插件描述

a rubik's cube game in vim script

Ⅱ. 基本信息

创建日期:  2005-05-03
使用用户:  1
Github星:  2
插件作者:  olivier vermersch

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/rubikscube-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/rubikscube-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/rubikscube-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/rubikscube.vim

Ⅳ. 文档说明

Commands:    

  • u, d, l, r, f, b to turn up, down, left, right, front and back faces clockwise (whatever cube orientation)
  • c, m, v to turn the three belts clockwise
  • shift + letter for turning counterclockwise - ctrl + letter for half turn
  • the whole cube can turn with the four arrows and Pgup/Pgdown keys
  • sramble cube with s key, reset it with S

TODO:

  • more configurable display
  • add some edit technique with a solver algorithm - in order to solve a real cube :-)
  • chrono + high score stuff
  • support for 4x4 and 5x5 cubes
  • write moves in letters when done
  • some optimization (seems to be slow on old or "slow networked display" machines)
  • etc.

添加新评论