0

我有一个愚蠢的问题,我敢肯定,我使用 vim 和 haskell-mode 插件在 haskell 上开发,但我不确定如何启用在 haskellmode -vim 上定义的组合键,例如:

|_ct| 创建 |标签| 文件

|_si| 在光标下显示 id 的信息

|_t| 在光标下显示 id 的类型

|_T| 在光标 |balloon| 下插入 id 的类型声明 在鼠标指针下显示 id 的类型

|_?| 在光标下浏览 id 的 Haddock 条目

|_?1| 在 Hoogle 中搜索光标下的 id

|_?2| 搜索哈优!光标下的id

如何在vim上键入以'_'开头的命令(我知道那里说这代表光标,而不是我想我只需要为该字段键入'si'但什么都没有发生)必须在哪种模式下键入它,我想在正常模式下。我在 Mac 上工作,但在 linux 上遇到同样的问题。

谢谢索林。

4

1 回答 1

1

文档中

Finally, the mappings actually use <LocalLeader> behind the scenes, so if
you have to, you can redefine maplocalleader to something other than '_'.
Just remember that the docs still refer to mappings starting with '_', to
avoid confusing the majority of users!-)

因此,您必须快速连续按_、 、C,然后为您的项目T创建tags文件。

除非您将您的设置<LocalLeader>_.

于 2015-08-26T07:15:35.837 回答