Tuesday, December 29, 2009

accelerate seven (or more) substitute

Hi,

I am doing this job for each line of a 4000 lines files :

let l:lineArranged = substitute(l:lineArranged, 'foo1', 'BAR1', "")
let l:lineArranged = substitute(l:lineArranged, 'foo2', 'BAR2', "")

...
..
let l:lineArranged = substitute(l:lineArranged, 'foo7', 'BAR7', "")


I would like to accelerate the job.
How can I do ?

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

No comments:

Post a Comment