vim-cheatsheet opens your cheat sheet file.
Open your cheatsheet file.
Using float window in Neovim 4.
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.
:Cheat
In 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.6
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 END
Below are some helper lines for popular package managers:
- NeoBundle
NeoBundle 'reireias/vim-cheatsheet'
- dein.vim
call dein#add('reireias/vim-cheatsheet')