Linux Vim 取消粘贴时自动注释和自动缩进
Linux Vim About 172 words示例
原本先粘贴的是:
# abcd
abcd
# xyz
xyz
复制到Vim后却是:
# abcd
# abcd
# # xyz
# xyz
解决
设置粘贴模式,然后再进入插入模式后-- INSERT --
会变为-- INSERT (paste) --
。
:set paste
还原
:set paste!
Views: 5,482 · Posted: 2019-09-30
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓

Loading...