vim - 修改 vim 自动缩进的行为
问题描述
总的来说,我喜欢 vim 的自动缩进功能。然而,有一件事情让我很恼火。当我在 markdown 中开始一个列表并且该行到达右边距时,vim用一个子弹标记开始一个新行。
当前行为:
Here is a list:
* The first sentence goes on and on and on and on and eventually
* it hits the right margin. I then hit Enter:
* And another bullet appears.
期望的行为:
Here is a list:
* The first sentence goes on and on and on and on and eventually
it hits the right margin. I then hit Enter:
* And another bullet appears.
我希望 vim 足够聪明,不要在自动换行时插入项目符号,而是添加两个空格。仅当我按 Enter 时才插入子弹。
这可能吗?
解决方案
推荐阅读
- css - 在标签之间放置间距
- opencv - 使用 JavaCV 获取视频旋转元数据值
- python - 使用配对索引键连接两个数据帧
- php - 同一个变量似乎在 PHP 代码的不同部分具有不同的值
- r - R中带有传单(mapview)的地图顶部的鼠标坐标信息
- java - 在 Spring Boot 测试中测试 @Cacheable:未在 MockBean 上调用咖啡因缓存
- javascript - 为什么在我的 pong JavaScript 画布游戏中球不能完全反弹?
- java - Jackson 在 Android 上按字母顺序对 JSON 序列化输出键进行排序
- python - 将数据复制到缓冲区(字节数组)
- xamarin.forms - 将位图保存到图库并通过本地通知访问它