Hello, "Chen San" wrote:
> i have saw some usages in such a form: > > let i=1 | g/foo/s//\="blah_".i/ | let i=i+1 > > then my question is, what if i wanna substitute something with a list, > such as ['one','two','three'] Sometimes ago, I wrote a :RotateSubstitute command that should answer your need: http://code.google.com/p/lh-vim/source/browse/misc/trunk/plugin/rotate_substitute.vim :%RotateSu/foo/one/two/three The simple version without backref support had been given on SO: http://stackoverflow.com/questions/1809571/how-do-i-substitute-from-a-list-of-strings-in-vim/1809780#1809780 HTH, -- Luc Hermitte http://lh-vim.googlecode.com/ http://hermitte.free.fr/vim/ -- 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
