[GH-ISSUE #2373] 粘贴内容到yml或yaml文件时 结果与预期不符合 #1517

Closed
opened 2026-02-27 00:03:51 +03:00 by kerem · 1 comment
Owner

Originally created by @qiang-l on GitHub (Feb 14, 2022).
Original GitHub issue: https://github.com/electerm/electerm/issues/2373

版本:v1.18.1
系统:Ubuntu 20.04
复现:
vim test.yml
1.鼠标右键粘贴以下内容

# 定义
id:
 - 1

得到结果

# 定义
# id:
#  - 1

2.粘贴以下内容

id:
 - 1
 - 2

得到结果

id:
         - 1
            - 2

如果vim test.txt 重复上述步骤 则结果正常

Originally created by @qiang-l on GitHub (Feb 14, 2022). Original GitHub issue: https://github.com/electerm/electerm/issues/2373 版本:v1.18.1 系统:Ubuntu 20.04 复现: vim test.yml 1.鼠标右键粘贴以下内容 ```yaml # 定义 id: - 1 ``` 得到结果 ```yaml # 定义 # id: # - 1 ``` 2.粘贴以下内容 ```yaml id: - 1 - 2 ``` 得到结果 ```yaml id: - 1 - 2 ``` 如果vim test.txt 重复上述步骤 则结果正常
kerem closed this issue 2026-02-27 00:03:51 +03:00
Author
Owner

@zxdong262 commented on GitHub (Mar 1, 2022):

1.18.5修复了

<!-- gh-comment-id:1055283134 --> @zxdong262 commented on GitHub (Mar 1, 2022): 1.18.5修复了
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1517
No description provided.