LPe7/vim-peekaboo

:eyes: " / @ / CTRL-R

★ 0Forks 0Vim scriptGitHub ↗Compare

README

vim-peekaboo

Peekaboo extends " and @ in normal mode and <CTRL-R> in insert mode so you can see the contents of the registers.

Installation

Using vim-plug:

Plug 'junegunn/vim-peekaboo'

Usage

Peekaboo will show you the contents of the registers on the sidebar when you hit " or @ in normal mode or <CTRL-R> in insert mode. The sidebar is automatically closed on subsequent key strokes.

You can toggle fullscreen mode by pressing spacebar.

You can also toggle line wrapping with the variable g:peekaboo_wrap (see below), or with the function peekaboo#wrap(), but some how it is impossible to change it when it is displayed (see commit 7004c239)

Customization

Config Default Description
g:peekaboo_window vert bo 30new Command for creating Peekaboo window
g:peekaboo_delay 0 (ms) Delay opening of Peekaboo window
g:peekaboo_compact 0 (boolean) Compact display
g:peekaboo_prefix Empty (string) Prefix for key mapping (e.g. <leader>)
g:peekaboo_ins_prefix Empty (string) Prefix for insert mode key mapping (e.g. <c-x>)
g:peekaboo_wrap 0 (boolean) Wrap lines in Peekaboo (can be changed between calling peekaboo)

License

MIT

Contributors

junegunnLPe7gelguymhinznicolaiskogheimtweekmonsterlo-tpdeathlyfrantic

Issues