Skip to content

Instantly share code, notes, and snippets.

@wanshot
Last active June 28, 2022 10:29
Show Gist options
  • Save wanshot/c96a5715130233926f8588fc25c28c97 to your computer and use it in GitHub Desktop.
Save wanshot/c96a5715130233926f8588fc25c28c97 to your computer and use it in GitHub Desktop.
【Vim】バッファ同士でdiffをとる
1. Vimを起動してそのままdiffを取りたい内容を貼り付け
2. enewで新しいバッファを開く
3. 1.のバッファと比べたい内容を貼り付け
4. 3.のバッファでdiffthis
5. 1.のバッファでdiffthis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment