一、 vim设置 paste 模式 运行如下命令,进入 paste 模式: :set paste 进入 paste 模式后,按 i 键进入插入模式,然后再粘帖,文本格式不会错乱了。 :set nopaste 取消paste模式