I have lines like this(there could be any number):
DELAY : 462
I want to replace all lines with number higher then 200 with 200. So
the line above should looks like this:
DELAY : 200
If I use this replace commnad:
:%s/DELAY : [201-9999]/DELAY : 200/g
it makes this:
from DELAY : 1012
to: DELAY : 200012
It looks like it replaces only the first digit and keeps the rest. It
also replaces string DELAY : 200, what it should not, because it
should find only numbers from 201.
Can anyone help me?
Thank you in advance
PS: Here is short example of the file:
Mouse : 741 : 490 : LeftButtonUp : 0
DELAY : 725
Mouse : 656 : 450 : LeftButtonDown : 0
DELAY : 87
Mouse : 656 : 450 : LeftButtonUp : 0
DELAY : 1137
Mouse : 588 : 412 : LeftButtonDown : 0
DELAY : 75
Mouse : 588 : 412 : LeftButtonUp : 0
DELAY : 912
--
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
No comments:
Post a Comment