Suppose that I'd like to do the following

  for vx in [1,3,5,2,4]
    echo vx
    print/display line vx+1
   endfor

i.e display
  1
 content of line 2,  as if :2,2 p
  3
 content of line 4
  5
 .............................
  4
 content of lie 5

Really I'm looking for how to convert from an to,  i.e between
an integer and a pattern/line-number

And  yes I searched in :h script i.e. chapter 41
and in my O'Reilly  Vi and Vim book
but didn't find how to do this.

advance thanks
--
Rostyk

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