なぜVimdiffはそれほど限られているのですか? [閉まっている
質問
VIMのすべての高度な編集機能により、Vimdiffが/右/左からコピーする方法がないとは信じがたいと思います!! Difftoolは他に何に使用できますか?何か案が? Vimdiffの機能は何ですか?
また、私は次の/前の違いに移行する方法さえ見当たりません!!
解決
すべてのことが助けの中で説明されています...(do
, dp
, ]c
, [c
)
:h diff
:h :h
あなたの友達でもあります。
他のヒント
使用する必要があります do
と dp
コピーのニーズのために。これらは、現在のウィンドウから「入れられた」を表し、他のウィンドウから「取得」します。 (これはデュアルスプリットの違いを想定しています。)
次の/前の違いに移動するには、使用してください ]c
と [c
.
可能な限りニーモニックを使用して、私が使用する基本的なコマンドは次のとおりです。
dp - 'put' the changes from the current window into the other window.
do - 'obtain' the changes from other window.
]c - Go to change after (ending/next bracket) -- move to the next difference.
[c - Go to change before(opening/previous bracket) -- move to the previous diff.
zo - 'open' a section of folded text.
zc - 'close' a foldable text section.
Ctrl-W+Ctrl W - (That's ^W twice.) Jump to the other window.
:diffupdate - updates diff based on changes .
所属していません StackOverflow