Sublime Forum

6000 lines into 400 each

#1

Hi,
I was wondering if there is an easy way to split my file containing 6000 lines into different files with 400 each?

0 Likes

#2

I have to be honest. This sounds like a job for script in <your favorite scripting language here>. It would be kind of silly to write a plugin to do this as a one time task. You won’t find any plugins for such an overly specific task as this.

0 Likes

#3

turn on vim mode

repeat this 15 times:
shift+V, 399J, D, open new file, p, go back to original file

0 Likes

#4

Nice! I’m proven wrong :slight_smile:.

0 Likes