hackertyper.vim


Ⅰ. 插件描述

mimics hackertyper.com in vim

Ⅱ. 基本信息

创建日期:  2016-02-09
使用用户:  1
Github星:  18
插件作者:  Michael Brown

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

#Hackertyper.vim

Inspired by www.hackertyper.com . Allows the user to appear productive in vim via
aimless button mashing.

Warning

Please only use on dummy code and backup. Use in isolated sessions. Currently
messes with your mappings.

Installation

I'd suggest a bundle install eg.

git clone https://github.com/mjbrownie/hackertyper.vim.git ~/.vim/bundle/hackertyper.vim

Usage

  1. Go to an unwitting file and write a %.hackertyper swapfile. :WriteHackerTyper
  2. Truncate the file (ggdG)
  3. type :StartHackerTyper
  4. Enter Insert Mode
  5. sdfhlksjdfhlskjdhflskjdhflksjhdflskjdhflskjdfhslkjdfhslkdjhf
  6. Once you have got it out of your system type :StopHackerTyper
  7. the hackertyper swapfile is just filename.hackertyper so delete afterwards.

Stuff that is not going to work

  • Insert mappings, completers, aliases are not likely to enjoy this.
  • any tab settings that are different to the file contents.

Possible enhancements

I might look at placeholder variables to allow some flexibility. It might even
be useful for mimicking/cheating live demonstrations/lectures, speeding through boilerplate etc.

添加新评论