如何让 Vim 在插入模式下自动进入配对字符?
我总是成对地输入成对的字符:
'' "" () [] {} <>
当我在插入模式下输入它们时,如何映射 Vim 立即跳转到它们内部?我尝试了一些谷歌搜索,但似乎无法找到正确的搜索词。
I always type paired characters by pairs:
'' "" () [] {} <>
How do I map Vim immediately jump inside them when I type them during Insert Mode? I tried some googling but I can't seem to get the right search term.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用
AutoClose
插件,它将插入右大括号,将光标留在其中。如果您足够快地键入匹配的括号,它会将光标移到该对之外。Use the
AutoClose
plugin, which will insert the closing brace for you, leaving your cursor inside them. If you type the matching bracket quickly enough, it will move your cursor outside the pair.在不使用任何插件的情况下,我发现我可以使用这个:
Without using any plugin, I found out I could use this: