Am Donnerstag, 11. August 2011 10:17:19 UTC+2 schrieb Chen San:
>
> it's odd, i just join the next two lines together with | ,and it works, 
> thanks for your idea.
>

It isn't odd if you consider how vim parses these lines:

g/src=""/s//\='src="'.g:imglist[i].'"'/g
> let i+=1
>

is equivalent to:

fun! Foo()
  s//\='src="'.g:imglist[i].'"'/g
endf

g/src=""/call Foo()
let i+=1

while

g/src=""/s//\='src="'.g:imglist[i].'"'/g | let i+=1


is equivalent to

fun! Foo()
  s//\='src="'.g:imglist[i].'"'/g
  let i+=1
endf

g/src=""/call Foo()

HTH

-- 
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

Reply via email to