I noticed something queer when doing a search and replace on the below
text...

vim%%%%rocks%%%%the%%%%world
vim%%%%rocks%%%%the%%%%world
vim%%%%rocks%%%%the%%%%world
vim%%%%rocks%%%%the%%%%world

I tried the following and got unexpected results...

:s/%/ /g  - replaces only the first '%' with an empty space. I was
expecting all '%' to get replaced !
:s/%/ /    - replaces all '%' with spaces..

I saw this behavior only for the character '%' .
Can this be explained ??

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to