在vimperator中手动切换到“提示”模式的命令是什么

What is the command to manually switch to "Hints" mode in vimperator ?

本文关键字:提示 模式 是什么 命令 vimperator      更新时间:2023-09-26

我正在寻找在页面加载时在 vimperator 中自动切换到"提示"模式的方法,而无需按"f"。

在 .vimperatorrc 中

autocmd PageLoad  .*  js <what goes here ? > 
hints.show("o")

是键 F 默认调用的内容,因此您需要使用

autocmd PageLoad  .*  js hints.show("o")

对于这种情况(如果您不想查阅源代码来查找 JS),另一种选择是使用 :normal 命令,该命令执行与给定键序列相对应的正常模式命令。

autocmd PageLoad  .* normal f