> > Reason that neither solution will work is that it requires moving > > the cursor, and that's not at all desirable in this case. > > I would not generally rule out cursor moves; within a function, Vim > doesn't update the screen, and you can save and restore the original > view via: > > let l:save_view = winsaveview() > " Your moves here > call winrestview(l:save_view) > > Many plugins use this.
Thank you, that's a good point. I'll give this a shot and report back with any issues. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CACoUkn4zGEa6VY14o0xqgPXw2Oi%2BC5sdF_zBnvZB%3DDeMMMjhUw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
