3

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

在 .vimperatorrc

autocmd PageLoad  .*  js <what goes here ? > 
4

2 回答 2

2
hints.show("o")

是默认情况下 f 调用的键,所以你想使用

autocmd PageLoad  .*  js hints.show("o")
于 2016-02-19T09:58:45.123 回答
1

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

autocmd PageLoad  .* normal f
于 2016-02-29T07:25:15.030 回答