I really like Sublime Text 2 but there is one feature that I wish it had. I use Textpad which allows you to paste a block of text with a document. Using Text pad, you find the point of insertion and right click, choose insert, paste as block.

Example:

abcd123efghi456jklmn789

It would be nice if I could right click between the d and the 1 and paste a block of text so it would look like this:

I made a very simple plugin that does exactly that : it's in package control under the name "Paste as Column" (default shortcut is ctrl+alt+v).Repo is https://bitbucket.org/Clams/sublimepastecolumn in case you need to install it manually.

Note that sublimeText already handle this kind of stuff but not in the exact way you are describing: if you do copy a block of text of n line and then put exactly n cursor the default paste function will insert each line where are each cursor. The behavior is slightly different, and in the end I use both

I want to paste 00a after the first d in the first line for all three lines (I take the example of the first post).After placing the cursor and hitting ctrl+alt+v only the first line is modified. Line 2 and 3 are untouched.

The plugin recopy a block of text (multiple line) and insert it wherever you want. If your block is only one line, then it just behave like a simple paste.

Maybe a better exemple would be:

abcd0123efgh1456jklm2789

imagine that you copy somewhere the following block

00a000a100a2

if you place the cursor after the d and hit ctrl+alt+v you would get abcd00a0123efgh00a1456jklm00a2789

And the other where I think it start to be really useful is when you try to do that let's say 4 character after the 0123: you insert space in the first line to put your cursor there, and then it ctrl+alt+v and you get

abcd123 0a01efgh456 00a1jklm789 00a2

with the space at the end of other line inserted, something that you cannot do easily with ST2 since you cant put cursor after the end of the line.

If you simply want to repeat on multiple line the same text then you can simply use the multiselection from ST2, then paste and it works fine without any plugin.

Clams wrote:I made a very simple plugin that does exactly that : it's in package control under the name "Paste as Column" (default shortcut is ctrl+alt+v).Repo is https://bitbucket.org/Clams/sublimepastecolumn in case you need to install it manually.

Note that sublimeText already handle this kind of stuff but not in the exact way you are describing: if you do copy a block of text of n line and then put exactly n cursor the default paste function will insert each line where are each cursor. The behavior is slightly different, and in the end I use both

THANK YOU VERY MUCH! This package worked perfectly for what I was needing to do...it let me paste over 300 rows with ease...huge time saver. Thanks again.