Hi Gary! On Do, 05 Mai 2011, Gary Johnson wrote:
> On 2011-05-05, Ben Fritz wrote: > > On May 5, 12:17 pm, cyboman wrote: > > > thank you everyone. i ended up using winsaveview()/winrestview() > > > > > > > That's like smashing a mosquito with a jackhammer. You end up saving/ > > restoring WAY more than you need to. How about just using the getpos > > and setpos functions if you're just restoring the cursor? Or > > even :normal! `` might suit your needs. > > I suppose, but there's no noticeable overhead to using winsaveview() > and winrestview() and I find it hugely annoying to have the screen > move when updating a copyright or Last Changed notice. By using > winsaveview() and winrestview(), I'm not even aware that anything > else happened when I :write the buffer. Yes, this is my feeling as well. regards, Christian -- -- You received this message from the "vim_use" 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
