Hi, Eric Leenman wrote: > > I have a file which contains lines like below > > Line 18 | 200 040 200 > 200 200 051 200 1C2 200 2E2 Line 18 | > 200 040 200 040 200 052 200 1B9 200 2F4 > Line 18 | 200 040 200 > 040 200 200 200 1C2 200 2DC > Line 18 | 200 040 200 > 040 200 063 200 1D6 200 2D4 > > How do I deleted per line all the 'odd' 200? > So that it becomes like: > > Line 18 | 040 > 200 051 1C2 2E2 Line 18 | > 040 040 052 > 1B9 2F4 Line 18 | > 040 040 200 1C2 2DC > Line 18 | 040 > 040 063 1D6 2D4
use the 'g' flag of the substitute command: :%s/\<200\>/ /g Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin)
