以“<register name> 开头时显示命令
show command when starting with "<register name>
作为 vim 的初学者,我希望在使用寄存器时获得视觉反馈。默认情况下,从寄存器粘贴时,即当您使用 " 启动命令,然后指定寄存器名称,然后是 "p" 之类的命令时,如果您正确键入寄存器名称,或者以下内容,您将一无所知命令有任何拼写错误。有没有办法让 vim 在以 "?
开始时显示完整的命令
那就看看吧:h showcmd
。恐怕,据我所知没有其他可能性。这显示了整个输入的命令。
有一个插件可以做到这一点:
https://github.com/junegunn/vim-peekaboo
Peekaboo will show you the contents of the registers on the sidebar when you hit " or @ in normal mode or in insert mode. The sidebar is automatically closed on subsequent key strokes
如果您只想查看寄存器的内容,可以使用:reg
勾选:h :reg
我找到了一种解决方案 - 格式化状态行以包含当前使用的寄存器。键入使用寄存器的命令现在将在 satusline 的相应列中显示提到的寄存器名称。它是通过在 satusline 中包含 %{v:register} 来实现的。
作为 vim 的初学者,我希望在使用寄存器时获得视觉反馈。默认情况下,从寄存器粘贴时,即当您使用 " 启动命令,然后指定寄存器名称,然后是 "p" 之类的命令时,如果您正确键入寄存器名称,或者以下内容,您将一无所知命令有任何拼写错误。有没有办法让 vim 在以 "?
开始时显示完整的命令那就看看吧:h showcmd
。恐怕,据我所知没有其他可能性。这显示了整个输入的命令。
有一个插件可以做到这一点:
https://github.com/junegunn/vim-peekaboo
Peekaboo will show you the contents of the registers on the sidebar when you hit " or @ in normal mode or in insert mode. The sidebar is automatically closed on subsequent key strokes
如果您只想查看寄存器的内容,可以使用:reg
勾选:h :reg
我找到了一种解决方案 - 格式化状态行以包含当前使用的寄存器。键入使用寄存器的命令现在将在 satusline 的相应列中显示提到的寄存器名称。它是通过在 satusline 中包含 %{v:register} 来实现的。