vim-code-review

Code review from the comfort of my favorite editor.

As a software engineer, I spend a good chunk of my time reviewing my coworkers’ code. I enjoy code review, but the existing tools aren’t always my favorite. Why stare at diffs in the browser when I could be viewing them in my editor, where I can easily jump between files, inspect types, run tests, and more?

This (Neo)Vim plugin aims to create a convenient code review experience within the editor. Here’s my typical workflow:

  1. Use git to checkout the branch that I want to review.

  2. Open Vim and run :ReviewStart to begin.

  3. Use the newly opened quickfix list to jump to files that need to be reviewed.

  4. Use :ReviewDiffSplit to view a side-by-side diff of the branch and its merge destination. (The diff split auto-updates when I change to another file.)

  5. Use :ReviewComment to write comments about the change in the review file.

  6. When finished, copy and paste the comments into my employer’s code review system, Bitbucket. (Hopefully automatically posting comments will be supported in the future; contributions are welcome!)

Source code and documentation are available in the Git repository.

Contributions are welcome! You can send questions, bug reports, patches, etc. by email to ~jcc/public-inbox@lists.sr.ht. (Don't know how to contribute via email? Check out the interactive tutorial at git-send-email.io, or email me for help.)