如何开始使用 viper/vimpulse?
我获得了 vimpulse 的 git 克隆,并按照说明进行安装。它基本上是说将 (require 'vimpulse)
放入我的 .emacs 文件中 - 但这将在启动时启动 viper/vimpulse,所以我尝试仅在使用 (add-hook 'viper-mode-hook (lambda () (require 'vimpuse))
。但是当我这样做时,这个视觉模式不起作用(尝试打开文件),所以我现在有一些东西就像 (defun vimpulse-on () (interactive) (require 'vimpulse))
一样,我使用 Cz
来切换。一旦 vimpulse 加载,就没有 Mx viper-go-away
的等效项,而是暂停,直到我再次点击 Cz
...此外,使用 viper/vimpulse 的任何一般提示非常感谢!
编辑:已更正语法错误。 ,当启动 viper-mode
时,正常模式下的 v
似乎映射到 find-file
。代码>(或ido-find-file
)。
I obtained a git clone of vimpulse and followed the instructions for installation. It basically says to put (require 'vimpulse)
in my .emacs file - but this will start viper/vimpulse upon startup, so I tried to have vimpulse load only if I invoke viper-mode with (add-hook 'viper-mode-hook (lambda () (require 'vimpuse))
. But when I do this visual mode does not work (tries to open file instead), so instead I now have something like (defun vimpulse-on () (interactive) (require 'vimpulse))
. After that to toggle on and off I use C-z
. Does that about sound right? So once vimpulse is loaded there's no equivalent of M-x viper-go-away
and instead it's suspended until I hit C-z
again... Also, any general tips with using viper/vimpulse would be appreciated! Thanks much in advance.
Edit: syntax error corrected. What I had tried was (add-hook 'viper-mode-hook (lambda () (require 'vimpulse))
, which does not enable visual mode when viper-mode
is started. v
in normal-mode appears to be mapped to find-file
(or ido-find-file
).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需将 vimpulse 加载到 viper-load-hook 中即可。
Just load vimpulse in the viper-load-hook.