Search code examples
vimvi

show command when starting with "<register name>


As a begginer in vim I would like to have visual feedback when operating with registers. And by default when pasting from registers, namely when you start a commmand with the " and then specify register name and then the command like "p", you don't have any clue niether if you type the register name correctly nor if the following command have any typo. Is there a way to make vim show the full command when you start it with "?


Solution

  • I have found a kind of a solution - formatting the statusline in order to include current used register. Typing a command that uses a register will now display the mentioned register name in the according column in the satusline. It is achieved with including %{v:register} in the satusline.