Ⅰ. 插件描述
mimics hackertyper.com in vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用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
- Go to an unwitting file and write a %.hackertyper swapfile. :WriteHackerTyper
- Truncate the file (ggdG)
- type :StartHackerTyper
- Enter Insert Mode
- sdfhlksjdfhlskjdhflskjdhflksjhdflskjdhflskjdfhslkjdfhslkdjhf
- Once you have got it out of your system type :StopHackerTyper
- 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.