ファイルを比較するとき、私はvimdiff
(またはvim -d
) を使用するのが好きで、vimdiff で変更をコピーする推奨される方法は次のとおりです。
]c - advance to the next block with differences
[c - reverse search for the previous block with differences
do (diff obtain) - bring changes from the other file to the current file
dp (diff put) - send changes from the current file to the other file
そして私もそれを知っています
:diffget
と同じですdo
:diffput
と同じですdp
これらのコマンドはすべて ( も含めて:diffput
) 問題なく動作しますが、 を入力dp
すると何も変化せず、エラー音が発生します。
これは、ホットキーを持つ vim-fugitive とのホットキー マッピングの競合によるものだと思いますdp
。
dp :Git! diff (p for patch; use :Gw to apply)
dp :Git add --intent-to-add (untracked files)
この問題を解決するにはどうすればよいですか? ありがとうございました。