I have some Vim functions that make changes to the document format. When I call this function, I currently use something like the following to save and restore my cursor positio
Just :h getpos()
let save_cursor = getpos(".") " MoveTheCursorAround call setpos('.', save_cursor)