Sunday, October 6, 2019

sed whole file

I just noticed an obnoxious behaviour that I think is a new "feature".
Or maybe it was always like this and I forgot. Or maybe I did
something wrong, in which case I apologize in advance.

It goes like this:
I want to replace each occurrence of "foo" by "bar". In command mode I
start typing
:%s/foo

and the cursor moves to the first occurrence of foo, even if it means
moving the page down. Maybe the user would like to copy something in
the original page? Maybe that's where the string "bar" occurs and the
user didn't memorize it?

Please help me to restore a sane behaviour

Thanks

Jorge Almeida

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAKpSnpKRxTKqhc8HGbC24QQ%3DbzOmF%3Dn1azvp7N4nzx5EVEU8DA%40mail.gmail.com.

No comments: