Insert a column of text with sublime text 3

Select and copy the lines on File B you want to copy. Move to File A, select the lines you wish to copy into. Press Ctrl+Shift+L to split your selection into a multiple line selection, move the cursors to wherever you want and paste.

The one limitation of this is that the cursors will keep their relative positions, you may not want this. Perhaps you want them all to remain in a fixed column.

Hold down the middle mouse button and drag to select one or many columns of text, again press Ctrl+Shift+L to split your selection into lines and proceed as before.


First, select the lines in File B that you want copied. Note the number X of lines (this should be displayed on the bottom of your screen).

Second, select the first X lines of File A so that there is a cursor at the end. To do this:

  • move your cursor to the end of the first line,
  • go up to the Selection menu, and use the shortcut for Add Next Line until X lines are selected. On OSX, its controlshiftdown.

In this example, there will be 3 cursors at the end of File A that look like this:

Alpha|
Beta|
Gamma|
Delta

Finally, press tab once, then paste your lines. You should have the results you want.

Because of the way this is done, its easier to paste into File A. However, if you really want to paste into file B or some other file, just copy the lines in File A into the target file before you start, and do the same process.


Steps:

  1. Go to File B, and enter multi-selection (++L OR Ctrl+shift+ L) on

    AAA
    BB
    CCCCC
    

    making sure everything is selected, and not just parts of the lines you want to copy.

  2. While in multi-selection mode, copy (+C OR Ctrl+C)

    AAA|
    BB|
    CCCCC|
    
  3. Go to File A, and make sure to enter multi-selection on exactly the same number of lines (in this case 3).

    Alpha|
    Beta|
    Gamma|
    Delta
    
  4. Paste (+V OR Ctrl+V) & voilà :)

Let me know if this works for you!