Hot answers tagged

2

verold=$(vim --version |sed -n 's/^Included patches:\s1-*//p')


1

By far, my favorite vim plugin for handling this is Recover.vim. When you edit a file which has an associated .swp, it gives you the option of showing the diff between the two. This is invaluable. For example: $ vi foo.py ... Please choose: D[i]ff, (O)pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort, (D)elete:



Only top voted, non community-wiki answers of a minimum length are eligible