How to diff two lines in an open file in vim?

A quick and dirty solution is to just select both lines and sort them while removing duplicates:

  • select lines
  • “:sort u”
  • if only one line remains, both were equal
  • if both remain, there most be some difference

An undo recovers everything again.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)