vim

practicalli-johnny 2023-12-01T13:07:03.228989Z

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-johnny 2023-12-01T13:09:01.174619Z

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

nbardiuk 2023-12-01T13:10:33.761859Z

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

nbardiuk 2023-12-01T13:11:39.608449Z

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

nbardiuk 2023-12-01T13:14:09.553739Z

https://vimhelp.org/insert.txt.html#i_CTRL-R

2023-12-01T16:46:02.360429Z

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

1
nbardiuk 2023-12-01T16:58:00.738469Z

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