How do I view or manipulate the search pattern register in Vim?
:echo @/
The / register holds the most recent search pattern.
:echo @/
The / register holds the most recent search pattern.
:echo @%
Vim provides special read-only registers that hold the current and alternate filenames.
". / "% / ": / "# registers
Vim has four read-only special registers that automatically contain useful contextual information.
registers #registers #special-registers #workflow #productivity