After installing Ag.vim I've had a frequent need to copy a search from * or / into the command line to search across all files in a codebase.
Example use case:
I find a string of text
user_profile_uri
and use*
to select it.I press
:
to enter commandline line mode and enterAg
to start my file search
Is there a way to move or copy the text in my search cursor to the commandline without having to copy the initial text by manually?
Edit:
I'm close to figuring this out. :registers
at the commandline will give me a list of registers and while in command mode I can use Ctrl+R <registerkey>
to paste. However, the text I need looks like \<user_profile_uri\>