On 20-Nov-12 20:14:08 +0100, Nate Soares wrote: > In that case I'd like to make a feature request for a way to handle functions > with ranges without moving the cursor. My suggestion would be adding a [save] > argument to :function which calls winsaveview() before entering and > winrestview() after exiting the function, as this has potential applications > beyond just [range] functions. > > Thoughts on the proposed api?
That might be a good compromise. Even though nobody has so far come up with a use case for the current, impractical behavior, Bram is (rightly) very concerned about preserving behavior. Though I have no experience with this, I guess this argument (I'd call it [keepview]) could be implemented without many lines of code and effort. -- regards, ingo PS: Please bottom-post on this list. -- 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