Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In vim and Notepad++ I have an awesome feature either mapped or built in that I've seen called text bubbling. I know about the Sublime documentation for mapping my own, but wanted to make sure I wasn't duplicating functionality:

Basically when I have either block of text selected, or just a cursor on a line, I push (ctrl + up/down) or some other mapping, and the text is moved up or down, in a block, and the rest of the text 'flows' around it.

Is this a native feature in Sublime Text or should I script it in?

share|improve this question
up vote 4 down vote accepted

I've found the command that controls this:

    { "keys": ["super+up"], "command": "swap_line_up" },
    { "keys": ["super+down"], "command": "swap_line_down" }
share|improve this answer

Sublime Text 2 doesn't appear to have that functionality. You can move whole lines, with ctrl + cmd + up/down, but not a smaller selection within a line.

I notice that you're using OSX. For what it's worth, Textmate has the functionality you're after. I haven't used Textwrangler in a while, so I can't say for sure whether it has this feature. It is a very good free text editor, and worth investigating regardless.

Edit: I tried Textwrangler, and while it's still a good editor, it doesn't have the feature that you're after.

However, if you're a Vim user, I've heard good things about MacVim

share|improve this answer
Sublime Text 2 is not free, you are required to purchase a licence for continued use... It's just not enforced. – Ben Sep 8 '11 at 18:45
Absolutely true Ben, removed that pointless and incorrect phrease. – Magnakai Apr 24 '14 at 15:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .