Linux Vim 取消粘贴时自动注释和自动缩进

Linux Vim About 172 words

示例

原本先粘贴的是:

# abcd
abcd
    # xyz
xyz

复制到Vim后却是:

# abcd
# abcd
#       # xyz
#       xyz

解决

设置粘贴模式,然后再进入插入模式后-- INSERT --会变为-- INSERT (paste) --

:set paste

还原

:set paste!
Views: 4,276 · Posted: 2019-09-30

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh