junegunn / vim-peekaboo

:eyes: " / @ / CTRL-R
1.13k stars 39 forks source link

Temporarily disabling peekaboo when dealing with extremely large registers #35

Closed pj closed 7 years ago

pj commented 8 years ago

Hi, while using peekaboo I've hit problems when one of the registers contains a lot of data, is there a way to temporarily disable peekaboo?

junegunn commented 8 years ago

Interesting problem. There's no automatic way to do that, but if it's sufficient to do it manually, you can call peekaboo#on() or peekaboo#off() functions which maps/unmaps bindings.

See https://github.com/junegunn/vim-peekaboo/blob/master/plugin/peekaboo.vim

But as you can see the mappings are buffer-local. Hmm.