VIM:バッファーを上書きせずに選択をデフォルトバッファーに置き換えます
質問
これが私の問題です:
私は視覚モードです。
テキストを選択して、バッファーにコピーします。 ((ヤンク)
バッファを交換して貼り付けたい別のテキストを選択します。 ((ペースト)
これで2番目の選択がバッファに置き換えられましたが、最初の選択肢をまだそこに座らせたいと思います。
何か案は?
解決
Often, this behavior is useful. When you don't want it, you can instead do the usual yank, then paste (officially, 'put') with "0p. You can do this however many times you like.
See :help v_p
for more.
If you want to avoid the overwrite, you need to delete first. You can use "_
to select the blackhole buffer, then delete d
, then paste before P
and you'll avoid the buffer being set.
所属していません StackOverflow