Place a colored mark in the gutter on the left-hand side, for those lines that have been modified since the last save was done (essentially, these lines are marked dirty.) I have been using jedit where there is an addon for this, and it has proven very useful to me.