我正在寻找一个vim命令粘贴代码,但禁用自动缩进。所以我找到了这些命令,我可以用一个命令粘贴,然后输入<Ctrl+C>
,非常简单。
然而,我不明白:insert
和:append
有什么区别。
它们真的有相同的行为吗?
:insert
和:append
的行为不相同。
:insert
在光标前插入文本
:append
在光标后插入文本
From :h append
附加({lnum}, {expr})
append ()
When {expr} is a |List|: Append each item of the |List| as a
text line below line {lnum} in the current buffer.
Otherwise append {expr} as one text line below line {lnum} in
the current buffer.
{lnum} can be zero to insert a line before the first one.