You can use the "n" flag to :s
:%s/>//gn
which you can learn more about at
:help :s_flags
:help count-items
-tim
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