I'm using vi mode in Bash. Currently I can paste from the system clipboard (both in insert and command mode) using C-v. When I'm in command mode I would like to paste from the system clipboard with p. I tried defining the following bind in my bash_profile:
bind -m vi-command '"p": "run '$(echo pbpaste)'"'
which is (clearly) wrong. So my question is: how can I paste from the system clipboard using p in bash with vi mode.
Can I somehow map p to C-v?
Edit:
bind -m vi-command -x '"p": pbpaste'
will paste the system clipboard before the command prompt. I want to paste it immediately after the cursor.