Thanks for the ideas!
I run script below on this text file:
xxx yyyyy xxx yyy xxxxx yyy
yyy xxxxx yyy xxx yyyyy xx
:source lots_of_replace.vim
" file begin - lots_of_replace.vim
let from1 = "xxxxx" " more specific string
let to1 = "yyyyy"
let from2 = "xxx" " less specific string
let to2 = "\x79yy" " or \u0079 (=y)
"for l in range(line('$')+1)
" call setline(l, substitute(getline(l), from1, to1, 'g') )
" call setline(l, substitute(getline(l), from2, to2, 'g') )
"endfor
" It works!!! ^^^ :)
mark a
%s/$from1/$to1/g
%s/$from2/$to2/g
'a
" It does not works! ^^^ :( Why?
" file end - lots_of_replace.vim
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---