I have not used vim, other than for a quick look.. the keybinding of Emacs are easier for me, but both are a big learning curve...I think Emacs (and probably Vim) are capable of this, but in the meantime I have re-acquainted myself with Notepad++ (for this issue only)...