如何让 Vim 自动放置结束大括号? [英] How do I get Vim to automatically put ending braces?

查看:20
本文介绍了如何让 Vim 自动放置结束大括号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编辑 .scm 文件时,如果 Vim 能在我开始 ( 时自动放置结束括号 ) 会很棒.如何我要这样做吗?

While editing .scm files it would be great if Vim would automatically put the ending brace ) as soon as I start (. How do I do this?

推荐答案

您可以根据自己的喜好映射左大括号:

You can map the opening brace to your liking:

:imap ( ()<left>

这篇关于如何让 Vim 自动放置结束大括号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆