Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找在页面加载时自动切换到 vimperator 中的“提示”模式的方法,而无需按“f”。
在 .vimperatorrc
autocmd PageLoad .* js <what goes here ? >
hints.show("o")
是默认情况下 f 调用的键,所以你想使用
autocmd PageLoad .* js hints.show("o")
这种情况的另一个选择(如果您不想查阅源代码来查找 JS)是使用:normal命令,该命令执行与给定键序列相对应的正常模式命令。
:normal
autocmd PageLoad .* normal f