Fork me on GitHub
#vim
<
2023-12-01
>
practicalli-johnny13:12:03

Is there a standard vim (neovim) key binding to paste text when doing a search with / e.g. I copy a full git SHA hash value from the GitHub website and want to find it in the current buffer

practicalli-johnny13:12:01

I guess I could paste the SHA into the current buffer and then search, or use Spectre plugin (which is very nice) Just wondered if I was missing how to paste into the / or : prompt

nbardiuk13:12:33

type CTRL-R then name of register to paste from the register

nbardiuk13:12:39

in my case CTRL-R" works because everything I copy goes to " register

Aleksander16:12:02

register or also CTRL-W works for word under the cursor

til 1
nbardiuk16:12:00

that's cool, so there are several c-r keys specific for command line https://vimhelp.org/cmdline.txt.html#c_CTRL-R_CTRL-W