If the vi editor causes a core dump, split the file into multiple segments.
Enter split - n filename name where n is the number of lines in each piece (1000 is the default), filename is the name of the files you want to split , and name is the new segment you are creating.