Showmap helps you type multi-char mappings.
For instance, in Tpope's unimpaired plugin, you can toggle some Vim options
with the co
maps Eg. col
toggles the 'list' option. Say you quickly want
to toggle 'cursorcolumn': you start typing co
, and then... damn, what's the
letter again for 'cursorcolumn'? 'c'? Nah, that's 'cursorline'. Shoot, the
mapping timed out...
Showmap automatically binds a helper mapping on common prefixes, like co
,
and when you stall at that point, a list of available keys is shown; the
helper can wait as long as you want for you to complete it, or you can get
more details about individual mappings.
Stalling on <Leader>t
, my prefix for setting/toggling some mode/options:
(Taken on minTTY with Office Code Pro font and Fahrenheit color theme)
Use your favorite method:
- Pathogen - git clone https://github.com/fcpg/vim-showmap ~/.vim/bundle/vim-showmap
- NeoBundle - NeoBundle 'fcpg/vim-showmap'
- Vundle - Plugin 'fcpg/vim-showmap'
- manual - copy all of the files into your ~/.vim directory
Run :helptags (or :Helptags with Pathogen), then :help showmap