TortoiseTyping


Ⅰ. 插件描述

Vim plugin: minimal typing tutor

Ⅱ. 基本信息

创建日期:  2010-05-15
使用用户:  18
Github星:  23
插件作者:  Stephen Mann

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Description

TortoiseTyping is a minimal typing tutor aimed at touch-typists who would like to spend a few minutes a week sharpening their skills.

This script is called TortoiseTyping because with typing its slow, steady, and accurate wins the race.

Compatible with Vim 7.2 and above. Requires the Vim was compiled with the python switch, which will be true for almost all modern distributions.

Quick Start

<esc> ends the program.

:TutorialTyping starts the two-minute tutorial.

:TortoiseTyping starts the program with default settings: "A Christmas Carol" text, shuffled sentence order, and 150 word session.

:FileTyping <filepath> starts like :TortoiseTyping, but with the file <filepath> of your choice.

Advanced Options and Features

The main screen has a progress bar showing percent completion through text. Use the tab key to toggle graphical/fraction representation. Below that are words-per-minute and accuracy statistics.

Main program options:

  • filepath: choose source file
  • randomize: whether or not to shuffle sentence order
  • wordcount: truncates source to wordcount number of words

The main entry point into the program is the python startTyping() function. The :TortoiseTyping command calls it like this:

command! TortoiseTyping py startTyping(
  \ filepath  = "xmasCarol.txt",
  \ randomize = True,
  \ wordCount = 150)

Feel free to use combinations of commands, mappings, and functions to customize how the program starts.

Installation

If using Vundle, add

Bundle 'thanthese/Tortoise-Typing'

to your vundle file and run :BundleInstall.

Otherwise, just make sure that

  • tortoiseTyping.vim is in plugins
  • xmasCarol.txt is in /.vim/bundle/Tortoise-Typing/plugin

Development

If you'd like to get involved in the project, there are some open bugs and enhancements. Send me a pull request!

Licensing

This work is distributed as is, and I make no guarantee that it won't trash your system. As always when trying new things, it makes good sense to save what you're working on first.

Feel free to modify and distribute this script in any way, so long as you credit me and send me an email if you do anything cool with it.

添加新评论