Hit Ctrl+Space to insert word under cursor in search

0 Points

Florian Beer Florian Beer

4 years ago

Place your cursor on the word you want to search for, start search by typing / and hit Ctrl+Space to insert the word.

 cmap <Nul> <C-R><C-W>

Paul Harper

Paul Harper 4 years ago

I know it's not quite the same, but I use * and # for this.

Florian Beer

Florian Beer 4 years ago

Oh nice, I didn't know about those two.

Thanks!