vim: add helper to save/restore cursor position