https://github.com/mipmip/vim-hotpop
https://github.com/mipmip/vim-hotpop
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mipmip/vim-hotpop
- Owner: mipmip
- License: mit
- Created: 2021-01-04T00:51:30.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-22T13:21:27.000Z (over 1 year ago)
- Last Synced: 2025-03-30T19:23:07.554Z (10 months ago)
- Language: Vim Script
- Size: 58.6 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vim HotPop - mapping and cheatsheet
When using this plugin to add custom mappings it add's them to a cheatsheet.
* Show cheatsheet in floating popup-window
* No redundant documentation

# Usage
Paste block below.. source your config and type `?` to get the help
screen shown above.
```
call hotpop#init() "run this before other calls
" MODE KEYSEQ COMMAND SHEET-PARAGRAPH SHEET HELP_TEXT
call HotpopMap('nmap', '', '?', ':call HotpopShow()', 'Hotmap', 'Open this popup...')
call HotpopMap('map', '', 'd', ':set background=dark', 'Colors', 'Change to dark background')
call HotpopMap('map', '', 'l', ':set background=light','Colors', 'Change to light background')
call HotpopMap('map', '', ':q', '', 'Most asked', 'Close Vim')
call HotpopMap('map', '', ':help 42', '', 'Most asked', 'Meaning of life')
```
**NOTE** Keeping `COMMAND` empty skips the remapping. This is useful for
existing mappings you just want to show in your cheatsheet.
# Installation
Use your favorite package manager.
Using vim-plug:
```
Plug 'mipmip/vim-hotpop'
```