> You can %s/>/>/g
> This way, undo is not necessary

For more complex ones, this can be written

   :%s/regexp/&/g

However, even though you know this doesn't change anything, Vim 
still things that the content has been modified, and sets the 
'modified' flag on the file.

Using the "n" flag

   %s/foo//gn

doesn't make the file modified.

-tim





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

Reply via email to