On May 5, 12:17 pm, cyboman <[email protected]> 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. By the way, did you notice this? Something in there might help with whatever problem you're trying to solve. http://vim.wikia.com/wiki/Automatically_Update_Copyright_Notice_in_Files I think the script in this tip updates all the notices, but it should be possible to modify it to only update the last one by searching up from the bottom. search() does allow you to specify a search direction. -- 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
