Ⅰ. 插件描述
vim-cheatsheet opens your cheat sheet file.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'reireias/vim-cheatsheet-hands-off'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'reireias/vim-cheatsheet-hands-off'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'reireias/vim-cheatsheet-hands-off'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/reireias/vim-cheatsheet
Ⅳ. 文档说明
vim-cheatsheet
About
vim-cheatsheet opens your cheat sheet file.
Open your cheatsheet file.

Using float window in Neovim 4.

Usage
Write your cheatsheet file path in .vimrc
let g:cheatsheet#cheat_file = '/path/to/your/cheetsheet'Run vim-cheatsheet to show your cheatsheet file as readonly.
:CheatIn Neovim 4 or higher, you can show cheatsheet in float window if you set the following settings.
let g:cheatsheet#float_window = 1
" you can change float window size.
let g:cheatsheet#float_window_width_ratio = 0.6
let g:cheatsheet#float_window_height_ratio = 0.6Change cheatsheet file by FIleType
If you want to change cheatsheet file by Filetype, you should use the following settings.
augroup vimrc_filetype
autocmd!
autocmd FileType zsh let g:cheatsheet#cheat_file = '~/.cheatsheet-zsh.md'
augroup ENDInstall
Below are some helper lines for popular package managers:
- NeoBundle
NeoBundle 'reireias/vim-cheatsheet'- dein.vim
call dein#add('reireias/vim-cheatsheet')