An open API service indexing awesome lists of open source software.

https://github.com/mipmip/vim-hotpop


https://github.com/mipmip/vim-hotpop

Last synced: 6 months ago
JSON representation

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

![](./screenshot.png)

# 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'
```