junegunn / vim-peekaboo

:eyes: " / @ / CTRL-R
1.12k stars 38 forks source link

Feature Request: change (or disable) default maps #84

Open Jasha10 opened 1 year ago

Jasha10 commented 1 year ago

I have the following maps in my vimrc:

nnoremap ' "
vnoremap ' "
nnoremap " ;
vnoremap " ;

There is a conflict with the maps defined by this plugin. I'd like to request a way to change the maps defined by this plugin to use ' instead of ".

lukelbd commented 1 year ago

I would also like to see this.

junegunn commented 1 year ago

One thing you can try is to set g:peekaboo_prefix (and/or g:peekaboo_ins_prefix) so that this plugin is only triggered when you type the prefix before the keys.

e.g. let g:peekaboo_prefix = '<leader>'

lukelbd commented 1 year ago

Thanks @junegunn (and thanks for the cool plugin). Got this to work for my setup: Previously, I rarely used registers, since I found them hard to work with / hard to remember, so I had " mapped to "* (i.e., "use the clipboard register"). Setting let g:peekaboo_prefix = '"' makes a double press of "" pull up the peekaboo panel. Working well so far.