[英]VIM ignores my tab-related settings in ~/.vimrc (and paste is not set)
[英]Vim opening files in replace mode when .vimrc has 'set paste'
当我在vim中复制粘贴时,缩进是不正确的。 所以我在.vimrc中添加了以下内容
set paste
现在粘贴工作正常,但vim正在以替换模式打开文件。 这是为什么?
我有什么选择?
谢谢
为了避免缩进问题,我要做的是使用:[line]pu[t] [x]
。 例如,如果我想在第4行之后粘贴X行,我会这样做:
:4put+
来自:help :put
:[line]pu[t] [x] Put the text [from register x] after [line] (default
current line). This always works linewise, thus
this command can be used to put a yanked block as new
lines.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.