smartone75
9th October 2001, 15:49
I am using vi editor for BaaN IV session scripts. Can anybody tell how a part of script can be copied from one & paste(insert) to other vi script.
Thanks
Han Brinkman
9th October 2001, 17:48
You can set mark points with the m command:
So on the first line type e.g. 'mk' (mark point k).
Then go to the last line and type
"oy'k (copy into buffer o from this point back to point k)
Goto the other file with
:e <filename>
and paste with
"op (put from buffer o)
Have fun!
pblancha
11th October 2001, 01:46
What i'm doing is i type:
in script A:
:set number ***that will display line number
:22,34 w! file ***from line 22 to line 34 write in file
then in script B:
:set number ***display line number
:4 r file *** insert at line 4 what is in file
works for me.
superman
12th October 2001, 18:27
use a dos based vi editor called "Lemmy" and you can do cut and paste operations by simply selecting the text.