使用自定义命令有什么好处? Vim 上的键?
我认为这是不言自明的。如何使用该密钥更有效?
I think its self explanatory. How it is more efficient to use that key?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一个明显的优势是,每当您决定更改组合时,您都可以通过更改
mapleader
键轻松完成。当您最喜欢的插件与您最喜欢的快捷方式冲突时,可能会发生这种情况。通过更改
mapleader
,您实际上是在保留快捷方式的同时更改它。之前(mapleader 为
,
)myFavoriteAction =
,cc
之后(mapleader 为
\
)myFavoriteAction =
\cc
One obvious advantage is whenever you decide to change combinations you could easily do it by changing the
mapleader
key.This can happen when your favorite plugin conflicts your favorite shortcut. By changing
mapleader
you're essentially keeping the shortcut but changing it at the same time.Before (mapleader is
,
)myFavoriteAction =
,cc
After (mapleader is
\
)myFavoriteAction =
\cc